readable Stores and Custom Start Functions
Create read-only stores backed by timers, sensors, or external data sources.
Read-Only Stores
A readable store has only subscribe. Consumers cannot mutate it.
Import readable
Comes from svelte/store.
import { readable } from "svelte/store";All lessons in this course
- Creating a writable Store
- Subscribing with $ Auto-subscription
- Updating Stores: set() and update()
- readable Stores and Custom Start Functions