-
-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(store): derived atom not updating when its value changes if another atom is read it conditionally #2700
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Preview in LiveCodesLatest commit: 3f75dea
See documentations for usage instructions. |
src/vanilla/store.ts
Outdated
const prevEpochNumbers: number[] = topsortedAtoms.map( | ||
(a) => getAtomState(a).n, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Let me add a commit to refactor something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a good fix. Let's ship it.
Related Bug Reports or Discussions
Fixes #2697
Summary
Seems a regression in store2 introduced in v2.9.0.
Check List
pnpm run prettier
for formatting code and docs