This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
2.1.3
Bug Fixes π
- Fixed class components only unsubscribing from a single property on unmount. #85
- Massive thanks to @umbertoghio for providing two repositories to reproduce this!
New Features β¨
- The dispatch function returned by
useDispatch
, when providing a property reducer and property name, can now be destructured. #90- This behavior is analogous to React's native
useReducer
behavior. const [ value, dispatch ] = useDispatch(propertyReducerFunction, propertyName);
- This behavior is analogous to React's native
Miscellaneous
- A TypeScript
PropertyDispatcher
type has been added toreactn/types/dispatcher
, referencing a dispatcher that can be destructured.