cefn / lauf

Monorepo for lauf packages.
MIT License
5 stars 0 forks source link

Retire edit #195

Closed cefn closed 1 year ago

cefn commented 1 year ago

Migrates towards the removal of immer from the core, by transitioning most demo apps to remove the use of the store.edit() method.

Instead of...

store.edit(({ caches }) => {
  caches[focus].isFetching = false;
  caches[focus].failedFetching = true;
})

we will instead have a standalone, immer-dependent module invoked like

edit( store, ({ caches }) => {
  caches[focus].isFetching = false;
  caches[focus].failedFetching = true;
})