Explore's calendar is empty when /explore is opened directly #76
Labels
No labels
bug
chore
data
feature
frontend
good first issue
intermediate
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/cal#76
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's wrong
The calendar on /explore only shows events after you have visited the home page first. Opening /explore directly (or refreshing it) shows an empty calendar, and toggling categories on Explore does not update it.
How to reproduce
Expected
Explore's calendar shows your schedule however you arrive there, and reacts to category toggles.
Where to look
web/src/app/page.tsx: the effect that buildscalendarEvents(it runs only on the home page) and callssetCalendarEvents.web/src/app/explore/page.tsx: only readscalendarEventsfromuseEventState().web/src/context/EventStateContext.tsx: wherecalendarEventslives.Done when