react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

[Bug]: Reusing Logic with Custom Hooks docs example doesn't work with firefox

Open marcadrian-it opened this issue 1 year ago • 0 comments
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

marcadrian-it avatar Aug 02 '24 11:08 marcadrian-it