F+Foldkit Plus
HomeLearnPackagesComponentsDemosGitHub ↗

Mirror

Guides

foldkit-mirror

  • Overview
  • Two lifecycles to remember
  • Sixty seconds: put a filter in the URL
  • Plug the URL into makeApplication with Mirror.routing
  • Add remembered local state with Mirror.kv
  • Restore before the first render with bootstrap
  • One list per application with wiring
  • What the Model being the truth gives you
  • URL history behavior
  • Key-value restore semantics
  • Writing and persistence behavior
  • The generic store seam

Mirrored state

  • Overview
  • The problem
  • How it fits together
  • What the Model being the truth gives
  • Reading back
  • One owner per datum

API

  • foldkit-mirror

Open source, MIT
Foldkit 0.168 · Effect 4

Mirror / foldkit-mirror

MirrorMessage

type · packages/mirror/src/index.ts:233

type MirrorMessage = MirrorRestored
Previousfoldkit-mirror

Edit on GitHub ↗

This site is a Foldkit Plus application, rendered at build time with foldkit-ssr. Its source

FoldkitEffectGitHub