Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

2.1.3

Compare
Choose a tag to compare
@quisido quisido released this 10 Jun 03:50
· 66 commits to master since this release

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);

Miscellaneous

  • A TypeScript PropertyDispatcher type has been added to reactn/types/dispatcher, referencing a dispatcher that can be destructured.