-
-
Notifications
You must be signed in to change notification settings - Fork 639
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
refactor(core): replace batch dependents map with batched changed atoms #2912
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. |
commit: |
Size Change: -527 B (-0.57%) Total Size: 92.1 kB
ℹ️ View Unchanged
|
Preview in LiveCodesLatest commit: fe7c699
See documentations for usage instructions. |
wow, this looks cool. I will have a closer look later. |
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.
Oh, yes! This is something I wan't comfortable with. Thanks for fixing it. This goes towards what I have in mind. I'd like to go further.
Is this now possible because of .x
?
Anyway, merging this.
Summary
Batch.D was previously
Map<Atom, Set<AtomDependent>>
.This allowed atom dependents to recompute without being mounted. There isn't an obvious reason to do so.
All tests pass after removing this functionality.
Dropped behavior
After this change, the following test would fail.
I don't think we should be update dependents of unmounted atoms.
Check List
pnpm run fix:format
for formatting code and docs