Michael

Results 5 comments of Michael

@developit I’m interested in this as well. My use case is a one-time user flow where there is no benefit to maintaining the web worker over the duration of the...

I think this would be a great addition to the useNetworkStatus hook. I think the [online/offline events API](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/Online_and_offline_events) could be used.

On a related note, I think it would be beneficial to enable the developer to pass a custom value for the initialNetworkStatus. A number of CDNs and other services are...

@addyosmani Thank you for sharing the client hint documentation -- that is definitely in the vein of what I had in mind. Please find my implementation PR [here](https://github.com/GoogleChromeLabs/react-adaptive-hooks/pull/23).

@gja It does not fix the mismatch issue, which is due to API asymmetry between the client and server, automatically. However, by using client hints to derive a reliable initial...