Skip to content

Commit

Permalink
perf(optimisations): ComponentQueries has been optimised to behave li…
Browse files Browse the repository at this point in the history
…ke a "pure" component.

BREAKING CHANGE: 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 new `config` prop includes the `pure` option as shown above as well as all the properties from the `sizeMeConfig` configuration prop (which is to be deprecated).

I've had to do a placeholder commit here as I previously got the semantic-release format for commit message wrong.
  • Loading branch information
ctrlplusb committed Sep 1, 2016
1 parent 96e4dbf commit 1a52dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ npm install react-sizeme react-component-queries --save

## Demo

COMING SOON...
COMING SOON....

## API

Expand Down

0 comments on commit 1a52dfe

Please sign in to comment.