Skip to content

Commit 1a52dfe

Browse files
committed
perf(optimisations): ComponentQueries has been optimised to behave like 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.
1 parent 96e4dbf commit 1a52dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ npm install react-sizeme react-component-queries --save
8787

8888
## Demo
8989

90-
COMING SOON...
90+
COMING SOON....
9191

9292
## API
9393

0 commit comments

Comments
 (0)