Skip to content

batch invalidations#204

Draft
tombl wants to merge 7 commits intomainfrom
push-wrnolppoputo
Draft

batch invalidations#204
tombl wants to merge 7 commits intomainfrom
push-wrnolppoputo

Conversation

@tombl
Copy link
Owner

@tombl tombl commented Oct 29, 2025

...in a microtask.

makes invalidate async, so while it's less convenient, you can still await or .then for your post-update DOM handling needs.

good for perf but mainly because I've just discovered a pile of reentrancy issues and don't want to keep hunting for them individually.

note that most usages in the examples didn't even need updating because very few actually need this. this does probably break all the benchmarks though.

closes #200

@github-actions
Copy link

github-actions bot commented Oct 29, 2025

Size Change: +16 B (+0.47%)

Total Size: 3.45 kB

Filename Size Change
./dist/client.min.js 2.06 kB +15 B (+0.73%)
./dist/shared.min.js 566 B +1 B (+0.18%)
ℹ️ View Unchanged
Filename Size
./dist/index.min.js 63 B
./dist/server.min.js 762 B

compressed-size-action

@tombl tombl force-pushed the push-wrnolppoputo branch 5 times, most recently from 1b25ee7 to cd2298a Compare October 29, 2025 14:22
tombl added 7 commits February 1, 2026 15:45
This reverts commit 1a90dc6.
This reverts commit bad5096.
batching makes things like 10x faster anyway.

at least returning a promise makes it easy to do
things after the update.
@tombl tombl force-pushed the push-wrnolppoputo branch from cd2298a to b621881 Compare February 1, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant