Closes every frame above the nearest frame of the screen target as one
transition and brings that frame back to the top — the app closing a whole flow
at once (the story's "Done" leaves the camera, its gallery, the editor and the
sheets in one step, not one screen at a time). The frames leave top first (each
one's beforeLeave and leave), the chain gives back every entry they wrote,
and only the frame left standing is brought back (its beforeResume and
resume run once). It succeeds with that frame's handle.
screen is the handle on top and must be in focus (ScreenNotOnTopError
otherwise). target names a screen definition: the frame it closes down to is
the nearest one below screen whose screen it is. A stack with no such frame
below screen is the defect ScreenRootBackError, as is a call with nothing to
close, refused before anything is emitted or changed. A tab's root is never
closed this way (ScreenNotNavigableError); it can be the frame the flow
returns to.
Closes every frame above the nearest frame of the screen
targetas one transition and brings that frame back to the top — the app closing a whole flow at once (the story's "Done" leaves the camera, its gallery, the editor and the sheets in one step, not one screen at a time). The frames leave top first (each one'sbeforeLeaveandleave), the chain gives back every entry they wrote, and only the frame left standing is brought back (itsbeforeResumeandresumerun once). It succeeds with that frame's handle.screenis the handle on top and must be in focus (ScreenNotOnTopErrorotherwise).targetnames a screen definition: the frame it closes down to is the nearest one belowscreenwhose screen it is. A stack with no such frame belowscreenis the defectScreenRootBackError, as is a call with nothing to close, refused before anything is emitted or changed. A tab's root is never closed this way (ScreenNotNavigableError); it can be the frame the flow returns to.