Andrew G. Dunn
2026-03-02 9576701d8532b9697df62c96d7c8676afd985b2d
refs
author Andrew G. Dunn <andrew@dunn.dev>
Monday, March 2, 2026 16:31 +0000
committer GitHub <noreply@github.com>
Monday, March 2, 2026 16:31 +0000
commit9576701d8532b9697df62c96d7c8676afd985b2d
tree b1355eaef9288674b86fed0ee8bdecd3a733fad9 tree | zip | gz
parent ec00a40aefca73596ab76e3ebe3a8e1129b43688 view | diff
fix: await micromorph() to prevent race condition with nav event handlers (#2323)

micromorph() returns Promise<void> because its internal patch() function
is async and uses Promise.all for recursive child patching. Without
await, the DOM morph may still be in progress when the nav event fires
and downstream handlers attempt to rebuild dynamic content.

Fixes #2322
1 files modified
2 ■■■ changed files
quartz/components/scripts/spa.inline.ts 2 ●●● diff | view | raw | blame | history