You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Intended outcome:
Changes made to local state managed with reactive variables should trigger update on every active query that depends on that variable. No matter if that was previously deactivated.
Actual outcome:
If query was deactivated and activated again update notification is no longer triggered.
Click button "Click to increment" several times - change notification is broadcasted and component is re-rendered with good counter.
navigate to "About" and go back to "Home"
Click button again several times - no update
If we now navigate again to "About" and back to "Home" all works good again and in fact we are back at step one.
Based on my research I see that when query is deactivated cache is detached from reactive variable (forgetCache) but when it is activated again cache is not attached again as it is done in initial render or after second navigation.
P.S. That works good if we are using useReactiveVar hook.
Versions
reproduced with: 3.3.6, 3.3.7
The text was updated successfully, but these errors were encountered:
@benjamn Cool if I re-assign this to myself? There's another issue related to reactive vars (#7609) that I'm going to look into, so might as well look into this too.
Intended outcome:
Changes made to local state managed with reactive variables should trigger update on every active query that depends on that variable. No matter if that was previously deactivated.
Actual outcome:
If query was deactivated and activated again update notification is no longer triggered.
How to reproduce the issue:
CodeSandbox
Based on my research I see that when query is deactivated cache is detached from reactive variable (forgetCache) but when it is activated again cache is not attached again as it is done in initial render or after second navigation.
P.S. That works good if we are using useReactiveVar hook.
Versions
reproduced with: 3.3.6, 3.3.7
The text was updated successfully, but these errors were encountered: