-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle query errors in
ChooseSession
The error and loading messages are just placeholders for now. The crucial change here is to let the student know when we can't display up-to-date session information for some reason. Note that we show data if it's available, without first checking for `isLoading` or `isError`. This means we may show stale data, but we prefer this over showing a loading message or an error for short server outages. For some justification of this approach, see: https://tkdodo.eu/blog/status-checks-in-react-query Note that React Query will not show stale data indefinitely, and will eventually show an error message if the data is stale for too long. Signed-off-by: Drew Hess <[email protected]>
- Loading branch information
Showing
1 changed file
with
85 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters