Skip to content

Allow queryEngine to operate async#499

Merged
rogueg merged 4 commits into
mainfrom
page-frame
Jul 14, 2026
Merged

Allow queryEngine to operate async#499
rogueg merged 4 commits into
mainfrom
page-frame

Conversation

@rogueg

@rogueg rogueg commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

This previously assumed that all queries would come in on the same tick, but that might not be true in a lot of cases (notably iframes, but also page js could cause this).

Instead, run queries as they come in. Also fixed an issue where page navigation would continue to run old queries.

rogueg added 2 commits July 13, 2026 17:22
This previously assumed that all queries would come in on the same tick, but that might not be true in a lot of cases (notably iframes, but also page js could cause this).

Instead, run queries as they come in. Also fixed an issue where page navigation would continue to run old queries.

I still want to support slightly out-of-order pages, where the code-fenced query might be below the component that uses it. To do that, I moved the registration of those queries to component initialization, while queries still happen on mount.
@rogueg
rogueg merged commit e353336 into main Jul 14, 2026
10 checks passed
@rogueg
rogueg deleted the page-frame branch July 14, 2026 00:07
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