xoid
xoid copied to clipboard
1.0.0-beta.14 | Add the new middleware system
Added
-
.getmethod to atoms - The new middleware API that's accesed via
atom.calloratom.bind.
Deprecated
- State getter's additional overload for consuming external sources is deprecated, instead use the new middleware API.
Before:
const $derived = atom((get) => get(store.getState, store.subscribe))After:
const $derived = atom.call({ get: store.getState, subscribe: store.subscribe })