xoidlabs / xoid

Framework-agnostic state management library designed for simplicity and scalability ⚛
https://xoid.dev
MIT License
158 stars 7 forks source link

1.0.0-beta.14 | Add the new middleware system #28

Open onurkerimov opened 6 months ago

onurkerimov commented 6 months ago

Added

Deprecated

Before:

const $derived = atom((get) => get(store.getState, store.subscribe))

After:

const $derived = atom.call({
  get: store.getState,
  subscribe: store.subscribe
})