@bgub/fig-refresh
v0.1.1
Published
Fig Fast Refresh runtime (HMR)
Readme
@bgub/fig-refresh
Fast Refresh runtime for Fig. It tracks component families across module re-evaluations and connects to a renderer-owned refresh adapter that swaps implementations in place while preserving state.
This package is wiring, not an API you call from application code: build
tooling (such as @bgub/fig-vite) injects register/setSignature calls
into transformed modules and drives performRefresh on hot updates.
See the repository's docs/concepts/ directory for the underlying contracts.
Installation
pnpm add @bgub/fig-refreshFig packages are ESM-only and require Node ^20.19.0 || >=22.12.0 for Node runtime entry
points.
License
MIT
