This repository has been archived by the owner on Jan 23, 2022. It is now read-only.
Release 3.0.0
3.0.0 (2021-08-27)
⚠ BREAKING CHANGES
- entity: Dictionary no longer has undefined defined
// before
state.entities[id]; // returns entity or undefined
// after
state.entities[id]; // returns entity
You should make sure that it is IMPOSSIBLE
to access the entity at some given id
if the entity
is undefined. Eg: via UI, undefined entity shouldn't be rendered.
- noopReducer usage has been simplified. The type parameters (
ActionProps
andSliceState
) have been switched
// before
noopReducer<TodoState, { filter: Filter }>();
noopReducer<TodoState>();
// after
noopReducer<{filter: Filter}>();
noopReducer();