-
Notifications
You must be signed in to change notification settings - Fork 543
Cannot get rid of Informer sending events #956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's hard to know what is going on here given the broader nature of your application. Can you distill this down to a simple reproducible example of the error? One thing that probably makes sense to do is to always check if |
Thank you @brendandburns for your support ! The issue was on the ElectronJS part, actually. ElectronJS trick is to remove all Listeners on the given channel when destroying the view (my views are managed by VueJS and navigation by Vue-Router). This cleans up the IPC channel created by the view. Therefore, going back & forth to this view does not accumulate events anymore. Thanks again for the work on the project 👍 |
Describe the bug
I am developing an ElectronJS application to display Kubernetes objects status (I know such app already exists).
I have problems with the Informer object.
Basically, each view of the app will display & watch K8s objects, depending of the namespace/context.
So, when the user navigate to a new view, I should kill the current Informer and then start a new one, watching a new objects k kinds, possibly in another K8s context.
On "server side" logs, I do not see a bunch of Informers sending events.
However, on the client side (the view), the more I navigate back and forth to the same view, it looks like events are accumulating over and over.
** Client Version **
0.17.1
** Server Version **
Client Version: v1.24.4",
Server Version: v1.24.4+k3s1"
To Reproduce
Here is a snippet :
Expected behavior
This is a screenshot of a view watching Pods through Informer. Fresh view just after starting the app :
So far, it's good. Note : there is indeed 7 pods.
However after navigating back & forth to this view several times, events seems to accumulate... But finally, it render as expected.
There are lots of multiples of 7. This show the accumulation : 7, 14, 21, 28, etc.....
Environment (please complete the following information):
** app stack**
** Related Issues**
Those 2 issues are maybe related:
606
604
The text was updated successfully, but these errors were encountered: