jotaijs / jotai-scope

MIT License
60 stars 4 forks source link

Unscoped derived atoms do not update dependencies with 2.9.0 #49

Closed dmaskasky closed 4 months ago

dmaskasky commented 4 months ago

Toggling a0 does not update dependencies of D0 inside Scope S1. Present on jotai@2.9.0, not present on jotai@2.8.4.

a, b, c, D(a ? b : c)
S1[]: a0, b0, c0, D0(a0 ? b0 : c0)

https://codesandbox.io/p/sandbox/atom-with-observable-infinite-mount-bug-fix-forked-253y84