- Add custom serializers for Store (PR #744)
- Allow to pass domain as an argument for createEvent and similar methods (PR #763)
- Add
$store.reinit
event to reset store to default value (PR #797)
Before $store.reinit
:
const $formValues = createStore<FormValues | null>(null);
sample({
clock: [timeoutOut, buttonClicked, meteorHit],
target: [
saveAllStuffFx,
]
})
// here we would need to duplicate the same clocks 👎
$formValues.reset([timeoutOut, buttonClicked, meteorHit])
With $store.reinit
:
const $formValues = createStore<FormValues | null>(null);
sample({
clock: [timeoutOut, buttonClicked, meteorHit],
target: [
saveAllStuffFx,
// reset $formValues back to null due to one of the clock reasons
$formValues.reinit,
// no need to duplicate clocks list 👍
]
})
- Add safe mode for scopeBind (PR #688)
- Add
is.attached
method to detect effects created viaattach
(PR #670) - Add @farfetched/core and atomic-router to default factories so the one not needed to describe them explicitly
- Protect against combine argument being broken via Array.slice (PR #801)
- Add "type" entry for package exports (PR #759)
- Finally allow
Gate
to be serialized (as this requires changes in babel plugin) (PR #683)