Documentation
¶
Overview ¶
Package fixtures ships first-class workbench stories for the framework's boundary components — async/suspense, error, and hydration boundaries — the stated reason for the workbench (FB5/D1). They double as headless smoke tests under workbench.RunStories and as gallery entries, so the boundary surfaces are exercised in every state on every run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllStories ¶
AllStories returns every boundary fixture — async/suspense, error, suspense-boundary, and hydration-boundary — so a single RunStories pass exercises all four boundary surfaces (D1).
func BoundaryStories ¶
BoundaryStories returns the boundary-component stories: the async boundary in its pending, content, and error states, and the error boundary rendering a healthy child.
func HydrationBoundaryStories ¶
HydrationBoundaryStories returns hydration-boundary fixtures: a progressive-hydration island in each resumption strategy (immediate / on-visible / on-interaction / on-idle), so the island-boundary wrapper and its hydration data attributes are exercised in every mode.
func SuspenseStories ¶
SuspenseStories returns suspense-boundary fixtures: a boundary that shows its fallback while a child is pending and swaps to the resolved content once ready — the suspense semantics (fallback → content) exercised explicitly, distinct from the raw async-state matrix above.
Types ¶
This section is empty.