← Home
Creates a read-only version of the store that can only be accessed using the last
, observe
and on
methods and cannot be modified externally.
import { createStore, readable } from '@yobta/stores'
const store = createStore(0)
export const readOnlyStore = readable(store)