Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Releases: nearform/react-browser-hooks

Update dependencies and fix bug with Media Controls hook

13 Jan 14:20
f230193
Compare
Choose a tag to compare

Updated all package dependencies and fixed related warnings/errors and failed tests. Also fixed a small bug in Media Controls hook related to muting and unmuting.

Add IE11 support to scroll hook

11 Mar 22:04
Compare
Choose a tag to compare

In order to better support IE11, the scroll hook now internally uses window.pageXOffset instead of window.scrollX and window.pageYOffset instead of window.scrollY.

Change npm package name

28 Feb 00:51
Compare
Choose a tag to compare

From @nearform/react-browser-hooks to react-browser-hooks. The old package has been deprecated.

Handle media element initial muted state

27 Feb 18:12
Compare
Choose a tag to compare

Fixes a bug that caused initial state to not reflect the media's muted attribute

Add click-outside hook

19 Feb 16:57
Compare
Choose a tag to compare

The Click Outside Hook attaches a listener which will callback the target component with the event object on any click which is not on the target component, or a child of the target component.

Server-side rendering safety & sensible defaults

14 Feb 17:12
Compare
Choose a tag to compare

Sensible defaults are provided to allow each hook to be safely used when rendering on the server.

useOnline api change

12 Feb 23:53
Compare
Choose a tag to compare

useOnline will now directly return a status boolean instead of an object with a status property.

Old const { status } = useOnline()

New const online = useOnline()