react-component-queries v2.0.0 Release Notes

Release Date: 2016-09-01 // over 7 years ago
  • <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 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).

    (1a52dfe9)