Releases: ctrlplusb/react-component-queries
Releases · ctrlplusb/react-component-queries
v2.3.0
2.2.0
2.1.3
2.1.1
2.1.0
2.0.1
<a name"2.0.1">
2.0.1 (2016-09-05)
Small Changes
- component: A static WrappedComponent prop has been added to the HOC to aid testing. Additionally the "conflictResolver" has been "moved" to the new "config" prop. The old parameter pass through method still works but can be considered deprecated. (50fbbbbb)
2.0.0
<a name"2.0.0">
2.0.0 (2016-09-01)
Breaking Changes
-
This is a partially breaking change that I don't expect will affect most users. I have extended the HOC so that it acts like a pure component. In doing so it checks to see if either the result of the queries are new or new additional props have been passed into your wrapped component. The
render
then only fires if one of these conditions were met. You can override this behaviour by using the new complex configuration option:
componentQueries({ queries: [...], config: { pure: false }})
The newconfig
prop includes thepure
option as shown above as well as all the properties from thesizeMeConfig
configuration prop (which is to be deprecated).(1a52dfe9)