Store Contracts and Interoperability
Understand what makes any object a valid Svelte store and use third-party stores.
The Contract
Any object implementing subscribe(fn) that returns an unsubscribe function is a Svelte store.
Why It Matters
The simple contract means many third-party libraries are usable as Svelte stores out of the box.
All lessons in this course
- derived() for Computed Stores
- Custom Store Pattern with subscribe/set/update
- Readable from Writable
- Store Contracts and Interoperability