InNoHassle website for accessing ecosystem services at Innopolis University. Student dashboard, personal schedule, room booking, interactive maps, and more.
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.
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.Suggested solution
Let's consider this fragment: https://github.com/one-zero-eight/InNoHassle-Website/blob/22d535c2d1f6b5096dfeb10060d2510488ab175b/components/schedule/ScheduleList.tsx#L17
This hook can additionally return
isError
andisLoading
boolean values. For example,This may be helpful while implementing this feature.
Additional context
No response