1.4.0 • Published 1 year ago

@exodus/fusion-atoms v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@exodus/fusion-atoms

Factory for creating atoms that sync using the fusion API (e.g. see fusion-local).

Usage

import { createFusionAtom } from '@exodus/fusion-atoms'

const fooBarAtom = createFusionAtom({ fusion, path: 'foo.bar', defaultValue: 42 })
// treat fooBarAtom like a normal atom