Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 348 Bytes

index.md

File metadata and controls

12 lines (8 loc) · 348 Bytes

Home

Readable Store Utility

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)