question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] derived atoms don't update depended on other atoms which update when router back

See original GitHub issue

I 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: image not working!
image make listeners.delete(callback) and delAtom(state, atom) reverse order, it’s working!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dai-shicommented, May 27, 2021

You can just use the codesandbox build if you are in hurry.

https://ci.codesandbox.io/status/pmndrs/jotai/pr/498/builds/134242

yarn add https://pkg.csb.dev/pmndrs/jotai/commit/8c941054/jotai
npm i https://pkg.csb.dev/pmndrs/jotai/commit/8c941054/jotai
1reaction
dai-shicommented, May 27, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found