Simple building blocks for reliable applications
This documentation covers installation, core concepts and the full reference for the public interface.
Features
- createStore(options). Creates a store from the given options and returns an object with read and write methods.
- serializeState(state). Converts the current state to a compact string that can be restored later.
- watchChanges(target, handler). Calls the handler every time the target changes and returns a function to stop watching.
- mergeConfig(base, overrides). Combines two configuration objects, giving priority to the second and keeping types intact.
Installation
pnpm add fluxonQuick start
import { createStore } from "fluxon";
const result = createStore(data, { strict: true });
console.log(result);