-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add online status #953
Conversation
# [2.9.0](v2.8.0...v2.9.0) (2021-08-13) ### Features * add online status ([#953](#953)) ([9b45a81](9b45a81))
🎉 This PR is included in version 2.9.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
} | ||
``` | ||
|
||
#### `CacheableSection` API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't add these docs yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I meant to delete all but the online status 🤭
({ type }: Event) => setOnline(type === 'online'), | ||
options?.debounceDelay || 1000 | ||
), | ||
[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to have options
in the dependency array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise when updating the debounce delay based on a prop the callback will never get recreated (should also add a test for this)
This pulls the
useOnlineStatus
hook from thefeat-add-offline-service
branch so that it can be available independently of the other PWA features, which will support progress on LIBS-48: Display connection status in global interface