Skip to content

Conversation

@justinwongeecs
Copy link
Collaborator

Every time GuidesView appears, it fetches from Firebase every time. We don't want to do that due to performance reasons.

Instead, we should fetch it once and keep it in memory during the lifetime of the application.

The reason why this is happening is that in homeDrawerContentView, we are creating a new instance of GuidesView in the switch statement where GuidesViewModel is being initialized each time.

Instead, we should move the initialization of GuidesViewModel outside of GuidesView into HomeView and pass it into GuidesView like what we are doing for DiningHallsViewModel?

@justinwongeecs justinwongeecs self-assigned this Dec 5, 2025
@justinwongeecs justinwongeecs linked an issue Dec 5, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent Guides View From Fetching Upon Appearance

2 participants