fixtures

package
v4.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 4 Imported by: 0

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

func AllStories() []workbench.Story

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

func BoundaryStories() []workbench.Story

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

func HydrationBoundaryStories() []workbench.Story

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

func SuspenseStories() []workbench.Story

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL