Skip to content
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

Merged
merged 6 commits into from
Aug 13, 2021
Merged

feat: add online status #953

merged 6 commits into from
Aug 13, 2021

Conversation

KaiVandivier
Copy link
Contributor

This pulls the useOnlineStatus hook from the feat-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

@KaiVandivier KaiVandivier requested review from amcgee and a team August 13, 2021 08:49
@KaiVandivier KaiVandivier merged commit 9b45a81 into master Aug 13, 2021
@KaiVandivier KaiVandivier deleted the feat-add-online-status branch August 13, 2021 10:32
dhis2-bot added a commit that referenced this pull request Aug 13, 2021
# [2.9.0](v2.8.0...v2.9.0) (2021-08-13)

### Features

* add online status ([#953](#953)) ([9b45a81](9b45a81))
@dhis2-bot
Copy link
Contributor

}
```

#### `CacheableSection` API
Copy link
Member

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

Copy link
Contributor Author

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
),
[]
Copy link
Member

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

Copy link
Member

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

4 participants