react.dev
react.dev copied to clipboard
[Bug]: Reusing Logic with Custom Hooks docs example doesn't work with firefox
trafficstars
Summary
On Firefox, for example with the code snippet that adds the event listener for 'online/offline' events. When the user goes offline, no event is triggered. In contrast to the Chromium browser, where everything works as expected. I'm curious why, given that both browsers support Navigator.onLine
Page
https://react.dev/learn/reusing-logic-with-custom-hooks
Details
No response