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

MirrorApp

interface · packages/mirror/src/index.ts:611

interface MirrorApp<AppModel> {
  readonly owner: object
  readonly initial?: AppModel | undefined
}

An application a mirror is declared over: its identity token, and its initial Model when it has one.

Members

MirrorApp.owner#

property · packages/mirror/src/index.ts:612

readonly owner: object

MirrorApp.initial#

property · packages/mirror/src/index.ts:613

readonly initial?: AppModel | undefined
Previousfoldkit-mirror

On this page

  • owner
  • initial

Edit on GitHub ↗

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

FoldkitEffectGitHub