Oct 7, 2020
- Add equalityCheck to useMappedState TypeScript def (thanks @fredriksundin)
- Fix memoize: save argument only if function does not throw (thanks @pauldijou)
- Update dependency versions
Never published
- Move
eslint
to a dev dependency (thanks @cpojer)
Nov 25, 2019
- Published without rebasing with new changes. Doh.
Nov 25, 2019
- Breaking Change: the default comparision for the return value of mapState has changed from shallow equality to reference equality. To restore the old behavior, pass a shallow equal comparison function to
create
(e.g.create({defaultEqualityCheck: shallowEqual})
). Theshallowequal
module is equivalent.
Oct 15, 2019
- useLayoutEffect to avoid unnecessary renders (thanks @goloveychuk!), fixing #73
Apr 29, 2019
- TypeScript types: allow custom dispatch type (thanks @zebrallel)
- Flow types: clean up after actual usage
Apr 8, 2019
- Don't resubscribe if
mapState
changes (thanks @Turanchoks)
Apr 5, 2019
- Simplify implementation, avoiding stale reads (thanks @Turanchoks!)
- Remove
prop-type
as apeerDependency
- Hand role TypeScript types to work around issues with create-react-app
- Add Flow types to distributed build
Mar 13, 2019
- Remove react-dom as a peerDependency
Feb 21, 2019
- Avoid double render if new mapState returns same mappedState (thanks @Turanchoks!)
- Add create function for better typing (thanks @nmn!)
Feb 6, 2019
- Update React dependency to 16.8.1, the one with hooks
- Update all other dependencies to the latest
Feb 1, 2019
- Bug fix: don't set state after unsubscribing from Redux (thanks @gaearon!)
Jan 28, 2019
- Move react-scripts and @types/node to devDependencies (thanks @stevenla)
Jan 20, 2019
- Add types field to package.json (thanks @Mrtenz!)
- Docs update to not condemn multiple useMappedState calls
Dec 26, 2018
- Update docs and tests
Dec 6, 2018
- Breaking Change: Export
StoreContext
instead of justStoreProvider
to allow access to the store in context outside ofredux-react-hook
. To update, replace imports ofStoreProvider
withStoreContext
and usage of<StoreProvider>
with<StoreContext.Provider>
Oct 30, 2018
- Breaking Change: Export
StoreProvider
instead of requiring you to pass in context
Oct 25, 2018
- Initial release