v5.2.0
New stuff
- Recollect now exports
PropTypes
, a replacement for theprop-types
library. This ensures that Recollect ignores reads from the store that occur while React is checking prop types. getListenersByComponent()
andgetComponentsByListener()
helpers for better debugging in the console.
Improvements
Webpack has been replaced with Rollup, and there are now CommonJS, ES6 modules, and UMD builds - each with a separate prod and dev build. Dev builds contain better errors and the two new helpers mentioned above.
Builds are now smaller in many cases. For example, if a project already has @material-ui/core
, adding Recollect is only 3 KB instead of 5 KB.
Bug fixes
- Previously, reading from the store using the
in
operator (e.g.if ('title' in store.page) ...
) insidecomponentDidUpdate
would result in reads for the 'previous' store being routed to the current store.