You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a number of issues with how the /day view loads and keeps data in-sync.
Problem 1: Duplicate Routing code and competing abstractions
There are competing implementations for how to fetch events between the day and week views, which makes the code more difficult to maintain and understand.
Problem 2: After an event changes, the data on the day view is not updated
Refetch after websocket notification. Refine websocket notification to prevent refetch for changes that aren't related to the day in view
Implementation Plan
Refactor how day events are fetched, so that they can be fetched outside of the day view (useRefetch)
Refactor useRefresh so it's not coupled to the week view
Update day view to use the standard Redux pattern in the rest of this app
Abstract refetching to a route layout to reduce duplication
Use Case
This'll help users always see the accurate date when viewing the Agenda on the day view
Activity