# CHANGELOG

# 1.38.0 (2023-08-02)


### Bug Fixes

* **components/react/hooks:** don't need to store the state when controlled outside (remove double re ([eea4bb3](https://github.com/SUI-Components/adevinta-spain-components/commit/eea4bb30b1beea51eb92d9a11e1e8d216f10c07a))
* **components/react/hooks:** lint ([4b94488](https://github.com/SUI-Components/adevinta-spain-components/commit/4b9448875cc110092a2a786cc7cf35e71f99ec57))


### Features

* **components/react/hooks:** fix imports ([f21dbf0](https://github.com/SUI-Components/adevinta-spain-components/commit/f21dbf0e4f2b456aa030634638e332798c31051e))



# 1.37.0 (2023-03-20)



# 1.36.0 (2023-03-20)


### Features

* **components/react/hooks:** add tests ([f45c6b0](https://github.com/SUI-Components/adevinta-spain-components/commit/f45c6b041158cc90374cb734d4b6ff2c53d6250b))
* **components/react/hooks:** create usePrecalculatedMediaQuery to avoid CLS in some scenarios ([9ccb695](https://github.com/SUI-Components/adevinta-spain-components/commit/9ccb6953a16a576e0ca12a215725671d5c59d651))



# 1.35.0 (2022-10-27)


### Bug Fixes

* **components/react/hooks:** Parse localstorage event value when changing it in the browser ([1028bea](https://github.com/SUI-Components/adevinta-spain-components/commit/1028bea750f09838067e4f637950e9fdbcec131c))


### Features

* **components/react/hooks:** Add isBoolean flag to localStorage hook ([62ff1eb](https://github.com/SUI-Components/adevinta-spain-components/commit/62ff1eb47f7ab85f5da7efd9308266e63e62db8c))
* **components/react/hooks:** Add options object argument with default parser function ([786f959](https://github.com/SUI-Components/adevinta-spain-components/commit/786f95955345bc5520bb1a33c767c1bf92365a33))
* **components/react/hooks:** Add parser function instead of boolean argument ([1105826](https://github.com/SUI-Components/adevinta-spain-components/commit/11058269893c13123d23d25ea0a4ce5b98534b07))



# 1.34.0 (2022-08-09)


### Features

* **components/react/hooks:** add useLocalStorage hook ([722a673](https://github.com/SUI-Components/adevinta-spain-components/commit/722a6730069a3de9eb3100580b9eda2cecd4a77f))



# 1.33.0 (2022-07-04)


### Bug Fixes

* **components/react/hooks:** Update the useOnScreen PropTypes ([cb84283](https://github.com/SUI-Components/adevinta-spain-components/commit/cb84283df64dc1ed084c41f3e71099edfea6d5fe))



# 1.32.0 (2022-06-08)


### Features

* **components/react/hooks:** add rollback of hook for compatibility with some verticals ([941426f](https://github.com/SUI-Components/adevinta-spain-components/commit/941426f7c6ac13bd56376e7d6c47709d848b0232))



# 1.31.0 (2022-06-07)


### Features

* **components/react/hooks:** use matchMedia by default when is supported ([b6d6560](https://github.com/SUI-Components/adevinta-spain-components/commit/b6d6560fd9eb04a87952698ba61c1277b4ec391b))



# 1.30.0 (2022-05-12)


### Features

* **components/react/hooks:** bump version ([d6a1eeb](https://github.com/SUI-Components/adevinta-spain-components/commit/d6a1eeb96125681b52db19236c510a78f26553cb))
* **react/hooks:** add more info in readme ([34b95b5](https://github.com/SUI-Components/adevinta-spain-components/commit/34b95b509e15e110ff4abef5281f8a38a38dfaec))
* **react/hooks:** add use callback ref ([b7fdaa5](https://github.com/SUI-Components/adevinta-spain-components/commit/b7fdaa5fd91c6b40fee937f8ddc94f72096517b7))
* **react/hooks:** fix linting errors ([746b349](https://github.com/SUI-Components/adevinta-spain-components/commit/746b349bc1077a53e1fdf0e74146c4fb516d0343))
* **react/hooks:** remove not needed deps ([516f073](https://github.com/SUI-Components/adevinta-spain-components/commit/516f0738d605af02b1bf538caa92ae88d54ca18d))
* **react/hooks:** update tests ([8b7c101](https://github.com/SUI-Components/adevinta-spain-components/commit/8b7c101ceded73206ae70f8356747ad405566f08))
* **react/hooks:** update use callback ref ([b98ad86](https://github.com/SUI-Components/adevinta-spain-components/commit/b98ad869f1e90a453e3acc39224a6149a3056e89))



# 1.29.0 (2021-12-27)


### Features

* **components/react/hooks:** add new hook useInterval ([2fbaa74](https://github.com/SUI-Components/adevinta-spain-components/commit/2fbaa7424a972048d560a2eea3e89aceb5273fab))



# 1.28.0 (2021-06-16)


### Features

* **react/hooks:** adds new prop in order to be able to use threshold ([35045bf](https://github.com/SUI-Components/adevinta-spain-components/commit/35045bfc3e88bf69dc8a541a1cbc80b0cecb4fe3))



# 1.27.0 (2021-05-18)


### Bug Fixes

* **react/hooks:** support older browsers without async/await support ([b614c6d](https://github.com/SUI-Components/adevinta-spain-components/commit/b614c6dd46e6fb1c1c0fa439a73d1cfaa3020c98))



# 1.26.0 (2021-04-30)


### Bug Fixes

* **react/hooks:** clipboard-copy promise handler ([9c0ff7a](https://github.com/SUI-Components/adevinta-spain-components/commit/9c0ff7a8397aadc0c6fd417a6d26ba6860477d08))


### Features

* **react/hooks:** add useMountedState useSetState useCopyToClipboard hooks ([23a654a](https://github.com/SUI-Components/adevinta-spain-components/commit/23a654a9988368588dd3821dcb3fd201ba0d794c))



# 1.25.0 (2021-03-11)


### Features

* **react/hooks:** add setControlledState ([783fe1c](https://github.com/SUI-Components/adevinta-spain-components/commit/783fe1c71ef88d8a6ebcd8a9daf8d73e73535e8e))
* **react/hooks:** add useControlledState extra features ([fb0a34f](https://github.com/SUI-Components/adevinta-spain-components/commit/fb0a34fed767894dc6d740085c395cebe63ffe89))
* **react/hooks:** filter updater action if using controlled mode ([35d679f](https://github.com/SUI-Components/adevinta-spain-components/commit/35d679fabfa714dc5afab47b6d754fe545ccf74a))



# 1.24.0 (2021-03-09)


### Features

* **react/hooks:** add useMergeRefs hook ([2a57dcf](https://github.com/SUI-Components/adevinta-spain-components/commit/2a57dcf1e751d6903364b61759efbde699ad2bb8))



# 1.23.0 (2021-02-25)


### Bug Fixes

* **react/hooks:** polyfill support for old chrome devices ([accae21](https://github.com/SUI-Components/adevinta-spain-components/commit/accae2163dc4b5bb9d312bcbaf06c5e09086023a))



# 1.22.0 (2021-02-22)


### Features

* **react/hooks:** add initial value to useOnScreen hook ([b476955](https://github.com/SUI-Components/adevinta-spain-components/commit/b4769557e36dd112bf20389521b0433c0defc7c5))



# 1.21.0 (2021-01-18)


### Features

* **react/hooks:** add useSteps hook ([d7f8966](https://github.com/SUI-Components/adevinta-spain-components/commit/d7f89664126956a5859dc0ba333f3caf2aa2f528))



# 1.20.0 (2021-01-15)


### Features

* **react/hooks:** add useBoolean implementation ([b4d2ae3](https://github.com/SUI-Components/adevinta-spain-components/commit/b4d2ae3f309035d7b13ddacab79a4416b410895b))
* **react/hooks:** add useToggle implementation ([03923a8](https://github.com/SUI-Components/adevinta-spain-components/commit/03923a8a2d603a759e981c4b1414e2fccdbb86fd))



# 1.19.0 (2021-01-14)


### Features

* **react/hooks:** add useEventListener ([6e92844](https://github.com/SUI-Components/adevinta-spain-components/commit/6e92844401582ba2b2d0c187056b795904c9adf1))



# 1.18.0 (2021-01-12)


### Bug Fixes

* **react/hooks:** move isClient const outside useOrientation ([bc39b6f](https://github.com/SUI-Components/adevinta-spain-components/commit/bc39b6f52227322b24651c5ca2348773e9981da4))
* **react/hooks:** update readme ([414abdb](https://github.com/SUI-Components/adevinta-spain-components/commit/414abdbe35e4cc13a2ba72f80d0ea87abaea0fb2))


### Features

* **react/hooks:** use orientation ([2cc9c6c](https://github.com/SUI-Components/adevinta-spain-components/commit/2cc9c6c94179b16da0d21ca4bccdf41a123e94f5))



# 1.17.0 (2020-11-05)


### Features

* **react/hooks:** add a new useSwipe hook ([5f8d4e9](https://github.com/SUI-Components/adevinta-spain-components/commit/5f8d4e975097d4e754e44bf0fdaef89e7f45d3c8))



# 1.16.0 (2020-11-02)


### Features

* **react/hooks:** add useOnClickOutside React Hook ([b5ba9c9](https://github.com/SUI-Components/adevinta-spain-components/commit/b5ba9c913ba3e52d070318fa7532af55a53d2d4f))



# 1.15.0 (2020-05-12)


### Features

* **react/hooks:** add useDebounce hook ([a567915](https://github.com/SUI-Components/adevinta-spain-components/commit/a567915a3395dd5c0131788064b166f1ebd6afc7))



# 1.14.0 (2020-05-06)


### Features

* **react/hooks:** use latest intersection-observer to only load one version on our apps ([5115e75](https://github.com/SUI-Components/adevinta-spain-components/commit/5115e753926f7eaa1ba9e79fc34ac409dcb12cb3))



# 1.13.0 (2020-05-06)


### Bug Fixes

* **react/hooks:** fix useMediaQuery mismatch ([be0bf3a](https://github.com/SUI-Components/adevinta-spain-components/commit/be0bf3aeb7172edee06a802de5a01a3167a5bc15))



# 1.12.0 (2020-02-25)


### Features

* **react/hooks:** Use new @s-ui/react-hooks ([e451ea1](https://github.com/SUI-Components/adevinta-spain-components/commit/e451ea19ecc68d3f496d46c1d23f22464c74d45d))



# 1.11.0 (2020-02-25)


### Features

* **react/hooks:** Use new [@s-ui](https://github.com/s-ui) org and stop using schibstedspain ([bc3cf5a](https://github.com/SUI-Components/adevinta-spain-components/commit/bc3cf5a1a4427757d02a3c5c060f2340946d91e6))



# 1.10.0 (2020-02-25)


### Features

* **react/hooks:** added useScroll hook ([413a529](https://github.com/SUI-Components/adevinta-spain-components/commit/413a52956fc2ef37bfdca1496c909d7fade0f141))
* **react/hooks:** applied the Pull Request suggestions ([de39585](https://github.com/SUI-Components/adevinta-spain-components/commit/de395850fcaeb71a23e5547875672604bc0ea816))
* **react/hooks:** improve and optimize the code ([aaf0ede](https://github.com/SUI-Components/adevinta-spain-components/commit/aaf0ede0d1497605afd2cc670eabe28adfb69095))
* **react/hooks:** removed unnecessary array argument ([daf7da0](https://github.com/SUI-Components/adevinta-spain-components/commit/daf7da0567b3a6139fbea39abe067f7ad4fe67b6))



# 1.9.0 (2020-02-24)


### Features

* **react/hooks:** useMediaQuery hook ([2781d00](https://github.com/SUI-Components/adevinta-spain-components/commit/2781d00d4996903de7d396137bd99857f6d74812))



# 1.8.0 (2020-02-21)


### Bug Fixes

* **react/hooks:** usePrevious displayName ([1d4f385](https://github.com/SUI-Components/adevinta-spain-components/commit/1d4f385152bb5f69458c39c6f9e0da5a301da0a1))


### Features

* **react/hooks:** add usePrevious hook ([c50c155](https://github.com/SUI-Components/adevinta-spain-components/commit/c50c1559efcff98a9657ab0875bcb8df008fe7d9))



# 1.7.0 (2020-02-04)



# 1.6.0 (2019-11-18)


### Bug Fixes

* **react/hooks:** fix temporaly to use async effects and clean effects ([c04a37b](https://github.com/SUI-Components/adevinta-spain-components/commit/c04a37b105ebec673ec224e314d6962ab610458d))
* **react/hooks:** fix useMount effect with clear effect ([cfb100a](https://github.com/SUI-Components/adevinta-spain-components/commit/cfb100a4e0e3895ed8554514b19f94aae501d7e9))


### Features

* **react/hooks:** add temporary solution for add compatibility ([f378268](https://github.com/SUI-Components/adevinta-spain-components/commit/f3782687777bbc233579508d7e0a37afbc16cb7b))
* **react/hooks:** show message only on other than production to remove the dead code on pro ([d488b42](https://github.com/SUI-Components/adevinta-spain-components/commit/d488b426a693e45bbf24fe94d2be1c8e64c7dbd6))
* **react/hooks:** update intersection-observer version ([35714ec](https://github.com/SUI-Components/adevinta-spain-components/commit/35714ecdd2dcefee28d30ba5b13b412115a894ea))



# 1.5.0 (2019-07-24)


### Bug Fixes

* **react/hooks:** make sure legacy state hook extends the most updated state ([3467709](https://github.com/SUI-Components/adevinta-spain-components/commit/3467709ad4bebf6e1696a9d23f47b2e479a9226d))



# 1.4.0 (2019-07-23)


### Features

* **react/hooks:** add a new useStateReducer hook ([579999c](https://github.com/SUI-Components/adevinta-spain-components/commit/579999cd9db778cf3dc3c92066c1c7d8fffdbb67))
* **react/hooks:** rename useStateReducer to useLegacyState ([83d0b35](https://github.com/SUI-Components/adevinta-spain-components/commit/83d0b359060443a6ea50ef1b4917db2a222b534d))



# 1.3.0 (2019-06-25)


### Features

* **react/hooks:** fix missing brackets ([f467719](https://github.com/SUI-Components/adevinta-spain-components/commit/f4677198cc90a54ccebc5c550a96b263bbb01bbe))



# 1.2.0 (2019-06-25)


### Features

* **react/hooks:** adaptation to be able to execute asynchronous functions ([70b94a1](https://github.com/SUI-Components/adevinta-spain-components/commit/70b94a1198c72cbf7f994efa9d61b31a02ec0a93))



# 1.1.0 (2019-05-21)


### Features

* **react/hooks:** add some react hooks useMount and useNearScreen ([0938603](https://github.com/SUI-Components/adevinta-spain-components/commit/0938603b54e54fe0aa3f814e7de918351a01fe50))
* **react/hooks:** export all hooks ([c21236f](https://github.com/SUI-Components/adevinta-spain-components/commit/c21236f0701038e1f2e0e69c7f97887ccc587598))



