This repository was archived by the owner on Feb 14, 2023. It is now read-only.
0.1.1
Features
-
Adds
resetGlobalas a helper function. #2 -
Adds
setGlobalas a second parameter to thewithGlobalHOC. #13
const GlobalComponent = withGlobal(
(global, props) => null,
(setGlobal, props) => null
)(LocalComponent);This is analogous to state/dispatch and mapStateToProps/mapDispatchToProps as used in the react-redux package.
Bug Fix
- Fixes unnecessary re-renders that were occurring on some occasions. #21
Miscellaneous
-
Unit test for
createReduceradded. -
Unit tests for component methods prepped.
-
Unit tests for helper functions prepped.