Skip to content

Commit

Permalink
add FIXME comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Feb 23, 2024
1 parent 5506d0d commit 14f2da2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vanilla/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -736,8 +736,9 @@ export const createStore = () => {
const [prevAtomState, dependents] = pendingMap.get(pendingAtom)!
pendingMap.delete(pendingAtom)
pending.push([pendingAtom, prevAtomState])
getAtomState(pendingAtom)?.d.forEach((_, a) => collectPending(a))
dependents.forEach(collectPending)
// FIXME might be better if we can avoid collecting from dependencies
getAtomState(pendingAtom)?.d.forEach((_, a) => collectPending(a))
}
pendingAtoms.forEach(collectPending)
pending.forEach(([atom, prevAtomState]) => {
Expand Down

0 comments on commit 14f2da2

Please sign in to comment.