Skip to content

fix: defer example log observer with a microtask#58

Open
Mastersam07 wants to merge 1 commit into
devfrom
fix/observer-mid-build
Open

fix: defer example log observer with a microtask#58
Mastersam07 wants to merge 1 commit into
devfrom
fix/observer-mid-build

Conversation

@Mastersam07

Copy link
Copy Markdown
Owner

A newly mounted navigator (the flow opening) dispatches its initial observer notifications during build; writing to a widget-bound ValueNotifier there throws markNeedsBuild-during-build. A microtask can't run mid-build and still lands before the next frame from a tap. Documents the pattern in the track-screens how-to and pins it with a widget test.

Fixes #57

A newly mounted navigator (the flow opening) dispatches its initial
observer notifications during build; writing to a widget-bound
ValueNotifier there throws markNeedsBuild-during-build. A microtask
can't run mid-build and still lands before the next frame from a tap.
Documents the pattern in the track-screens how-to and pins it with a
widget test.

Fixes #57
github-actions Bot pushed a commit that referenced this pull request Jul 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs preview: https://kaisel.dev/pr-58/ (updates on every push; removed when this PR closes)

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.

Example flow run in main_results_and_flows raises runtime exception

1 participant