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

[FLOW-26] Display profile data immediately on new account #187

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

addison-ch
Copy link
Member

No description provided.

@addison-ch addison-ch marked this pull request as ready for review October 15, 2024 01:55
src/components/common/CourseReviewBox.tsx Show resolved Hide resolved
@@ -35,7 +35,7 @@ const WelcomePage = () => {
<ScheduleUploadModalContent
onSkip={() => {
setIsUploadingSchedule(false);
history.push(PROFILE_PAGE_ROUTE);
history.push(PROFILE_PAGE_ROUTE, { fromWelcome: true });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I think instead of setting a query param, we should just invalidate the cache when we perform login and not change any of this

Something like:

import { useApolloClient } from '@apollo/client'
import { GetUserQuery, GetUserQueryVariables } from 'generated/graphql'

...

client = useApolloClient()

// On login -> client.resetStore()
// OR try client.evict('userId') or something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants