ref-unresolved
What it catches
Section titled “What it catches”In a flow file:
- an
entryin the front matter that is not a registered screen; - an
@screen.idreference, anywhere in the text or the diagram, to a screen that is not registered; - an
@screen.id#regionreference to a region that is not in any of that screen’s layouts (the default layout or an override).
Why it matters
Section titled “Why it matters”References are how a flow says where each step happens, and how the generated pages connect flows to screens. A reference to nothing is a step nobody can find, and usually means a screen or region was renamed and the flow was not updated. This is a correctness rule: it is always an error.
How to fix
Section titled “How to fix”Correct the screen ID or region name, or register the screen or add the
region. References are written @ then the screen ID, with # and the
region name for a region: @trip.timeline#add.
Example
Section titled “Example”The timeline’s primary action is the region add:
screens: trip.timeline: title: Timeline area: trip presentation: tab layout: - {region: add, kind: primary-action, label: Add activity}The flow calls it add-activity:
---id: add-activitytitle: Add an activitystatus: shippedentry: trip.timeline---
## Steps
1. Tap @trip.timeline#add-activity.---id: add-activitytitle: Add an activitystatus: shippedentry: trip.timeline---
## Steps
1. Tap @trip.timeline#add.