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

[Schedule] Add error state #131

Open
danmaninc opened this issue Mar 3, 2024 · 0 comments
Open

[Schedule] Add error state #131

danmaninc opened this issue Mar 3, 2024 · 0 comments
Labels
enhancement New feature or request good first issue A good place to start

Comments

@danmaninc
Copy link
Collaborator

Describe the feature

When the data fetching is failed (for example, in the schedule lists), the short description of error should appear.
For example, in the ScheduleList component instead of infinite loading we can display appeared error.
image

Suggested solution

Let's consider this fragment: https://github.com/one-zero-eight/InNoHassle-Website/blob/22d535c2d1f6b5096dfeb10060d2510488ab175b/components/schedule/ScheduleList.tsx#L17

const { data } = useEventGroupsListEventGroups();

This hook can additionally return isError and isLoading boolean values. For example,

const { data, isError, isLoading } = useEventGroupsListEventGroups();

This may be helpful while implementing this feature.

Additional context

No response

@danmaninc danmaninc added the enhancement New feature or request label Mar 3, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in InNoHassle Mar 3, 2024
@ArtemSBulgakov ArtemSBulgakov added the good first issue A good place to start label Mar 3, 2024
@ArtemSBulgakov ArtemSBulgakov moved this from 📋 Backlog to 🔖 Todo in InNoHassle Mar 4, 2024
@ArtemSBulgakov ArtemSBulgakov changed the title Add error state [Schedule] Add error state Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue A good place to start
Projects
Status: 🔖 Todo
Development

No branches or pull requests

2 participants