v5.0.0
Version 5 brings a major change to the way the Recollect store works, making it almost identical in behaviour to a normal JavaScript object (the only difference being that the Recollect store is immutable under the hood).
New stuff
- It should now be impossible to read from the 'wrong' store. You can refer to the Recollect store via
props.store
in acollect
ed component, orimport {store} from 'react-recollect'
. Previously, attempts to read from the imported store inside acollect
ed component was an error. This also means you no longer need to passprops.store
to a selector.
Breaking changes
- The
prevStore
property has been removed from the event passed to anafterChange
callback. If you would like to compare to the previous store, you will need to track this yourself. - Any code that relied on (or worked around) the Recollect store behaving differently to a plain JS object will probably break.