ssrmeta

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupPreloadContexts

func LookupPreloadContexts(ctx context.Context) (fetchCtx, waitCtx context.Context, ok bool)

LookupPreloadContexts returns the stored SSR preload contexts and whether the metadata was present on the supplied page context.

func PreloadFetchContext

func PreloadFetchContext(ctx context.Context) context.Context

PreloadFetchContext returns the context that SSR-started resource fetches should use, if one was configured.

func PreloadWaitContext

func PreloadWaitContext(ctx context.Context) context.Context

PreloadWaitContext returns the context that SSR resource waiting should use, if one was configured.

func WithPreloadContexts

func WithPreloadContexts(ctx, fetchCtx, waitCtx context.Context) context.Context

WithPreloadContexts stores SSR preload fetch and wait contexts inside a page StdContext so root SSR code and pkg/vango can coordinate without widening public framework interfaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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