Hi all, I am stuck with a bug in an “input field” component of my app. When I pass a “disabled?” parameter (deref of an atom), the component seems to be rerendered (keeps subscribing) every second — although I am not sure about that, I only see the recurring subscription, print statements were not executed. Really weird (for me). Unfortunately the source code is to big to post it here, but perhaps someone is willing to jump on a screen sharing session some time within the next 5-6 hours?
Show us a screenshot of the sub code, and the button implementation. With this we can help you look to it
@mail990 I know this isn't directly related to your issue but I wrote something about UI dev and its mostly to do with input fields, and re-rendering issues. Maybe it might help you. https://abhinavomprakash.com/posts/what-makes-frontend-development-tricky/
If you're using the latest React, you can use React DevTools to see what made a particular component re-render. You can also use re-frame-10x to trace any values that are changing that might lead to a re-render.
I have re-frame-10x and see the subscription counter in “stats” counting up every second, but there are no eventse
I’ll check the React DevTools, thanks!
Do you have all these traces enabled in re-frame-10x?
Also, "every second" makes it sound like you call js/setTimeout or a similar function somewhere - maybe just searching for those in the sources will reveal the cause.
it keeps counting up, but I do not see anything else than :sub/run,