[BUG] derived atoms don't update depended on other atoms which update when router back
See original GitHub issueI use derived atoms filterTodoList, that depends on filterState, I don’t use Provider, when I navigate to other page and go back,
I can update filterState but filterTodoList doesn’t update automatic, this is link for recurrent:https://codesandbox.io/s/jovial-shadow-4qnd8.
I find in source code:
not working!
make
listeners.delete(callback)
and delAtom(state, atom)
reverse order, it’s working!
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
jotai atomwithhash - You.com | The Search Engine You Control
#490 [BUG] derived atoms don't update depended on other atoms which update when router back; #491 [useAtomCallback] Incorrect return type
Read more >'Observable<T>' is not a class derived from 'Observable<T>'
When trying to extend a class from a class in a node_modules the typescript compiler throws a error saying: Property 'source' is protected...
Read more >What is the use of NTP server when devices have accurate ...
NTP servers derive their times from atomic clocks, ... If your device has its own atomic clock then sure, you don't need regular...
Read more >A guide to choosing the right React state management solution
React state management comes with challenges developers should be prepared to overcome. Learn the best approach, tool, and pattern to do so.
Read more >A Simple Way to Route with Redux - James Long
If we update the tree immutably, it's very easy to make atomic ... when you want to work with other libraries like react-router...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can just use the codesandbox build if you are in hurry.
https://ci.codesandbox.io/status/pmndrs/jotai/pr/498/builds/134242
https://codesandbox.io/s/ancient-morning-gvkuk Fixed by #498