Skip to content

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: +20 B (+0.58%)

Total Size: 3.45 kB

Filename Size Change
./dist/client.min.js 2.06 kB +19 B (+0.93%)
./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 3 times, most recently from 5f76694 to 6b9a0a2 Compare October 29, 2025 13:47
tombl added 6 commits October 29, 2025 22:11
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 6b9a0a2 to 1b25ee7 Compare October 29, 2025 14:18
@tombl tombl force-pushed the push-wrnolppoputo branch from 1b25ee7 to cd2298a Compare October 29, 2025 14:22
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.

2 participants