Closed ImSingee closed 7 months ago
Thanks for reporting. Hmm, your code looks okay.
Are you sure if this issue is only with atomWithReducer
? Using atom
doesn't cause it?
@dai-shi Yes I’m sure there’s not problem with pure atom
@yf-yang do you notice something?
I actually don't understand where is the bug. It would be nice if we could find it. I hope to try it.
My hope was https://github.com/pmndrs/jotai/pull/2351 would fix completely, but there still seems to be an issue in jotai-scope.
If used with reducer, the changes in the inner scope won't affect the outer.
Re-Produce: https://codesandbox.io/p/sandbox/zealous-framework-jnlrvf
(
Count
should be in sync, but not)