Skip to Content
DocumentationPackages@formkit-gov/store

@formkit-gov/store

Pluggable state management with persistence and backend sync for form applications.

Status

Coming in v0.3.0 - This package is currently in development.

See the roadmap  for release timeline.

Overview

The store package provides flexible state management for form persistence with:

  • Multiple storage adapters (session, local, memory)
  • State library integrations (Zustand, Redux, TanStack Query)
  • Backend synchronization
  • Offline support

Planned Adapters

AdapterDescription
sessionStorageBrowser session storage
localStorageBrowser local storage
memoryIn-memory storage (testing)
zustandZustand store integration
reduxRedux store integration
tanstack-queryTanStack Query integration
backendREST API synchronization

Planned Hooks

HookDescription
useFormPersistencePersist form state
useSaveInProgressSave-in-progress functionality
useAutoSaveAutomatic form saving

Planned Features

  • Core store factory with adapter pattern
  • Conflict resolution strategies
  • Offline support utilities
  • Encryption for sensitive data
  • Expiration policies

Installation

npm install @formkit-gov/store
Last updated on