We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b5741e commit 9661e6fCopy full SHA for 9661e6f
1 file changed
src/core/store.ts
@@ -140,6 +140,9 @@ export const createStore = (
140
if (!('v' in atomState) || !Object.is(atomState.v, value)) {
141
atomState.v = value
142
++atomState.r // increment revision
143
+ if (atomState.d.has(atom)) {
144
+ atomState.d.set(atom, atomState.r)
145
+ }
146
}
147
commitAtomState(atom, atomState, dependencies && prevDependencies)
148
0 commit comments