lbry-desktop/web/component/browserNotificationSettings
infinite-persistence d210e81ded
useBrowserNotifications: don't set state if already unmounted.
Closes 1053

We can't cancel a promise, but we could prevent setting orphaned states by taking advantage of closures to detect if we have unmounted.

Reference: https://juliangaramendy.dev/blog/use-promise-subscription
2022-03-09 13:22:54 +08:00
..
index.js Browser push notifications (#133) 2021-10-27 10:38:10 -04:00
use-browser-notifications.js useBrowserNotifications: don't set state if already unmounted. 2022-03-09 13:22:54 +08:00
view.jsx Add hints if an error occurs subscribing to notifications (#143) 2021-11-01 14:51:23 -04:00