Skip to content

fix: forward run<T> from a flow sub-router to its host#56

Merged
Mastersam07 merged 2 commits into
devfrom
fix/nested-flow-run
Jul 20, 2026
Merged

fix: forward run<T> from a flow sub-router to its host#56
Mastersam07 merged 2 commits into
devfrom
fix/nested-flow-run

Conversation

@Mastersam07

Copy link
Copy Markdown
Owner

Fixes #55

Inside a flow, context.router<R>() resolves to the flow's sub-router;
run on it added the nested flow to a list nothing renders — the flow
never appeared and its future never completed. Sub-routers now carry a
host pointer and forward run to the root, so nested flows always land
on the rendered overlay stack. Cuts kaisel_core 1.0.1.
@github-actions

Copy link
Copy Markdown
Contributor

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

github-actions Bot pushed a commit that referenced this pull request Jul 20, 2026
@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f9d09f6) to head (8aa2156).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev       #56   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           42        42           
  Lines         2319      2322    +3     
=========================================
+ Hits          2319      2322    +3     
Flag Coverage Δ
kaisel 100.00% <100.00%> (ø)
kaisel_core 100.00% <100.00%> (ø)
kaisel_devtools 100.00% <100.00%> (ø)
kaisel_lint 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Mastersam07
Mastersam07 merged commit 7c7d31b into dev Jul 20, 2026
7 checks passed
github-actions Bot added a commit that referenced this pull request Jul 20, 2026
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.

Nested flows example doesn't run AddCardFlow on "Add card" tap

1 participant