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

Refresh queries when the app gains focus and when changing the language #29

Conversation

charlesdemers
Copy link
Member

📖 Description

We notify react-query whenever the app gains focus or it put in the background so that queries can be refetched. We also invalidate the cache when the language changes to make sure that we have information in the right locale

🦀 Dispatch

  • #dispatch/react
  • #dispatch/react-native

template/src/navigation/index.tsx Outdated Show resolved Hide resolved
template/src/navigation/index.tsx Outdated Show resolved Hide resolved
@charlesdemers
Copy link
Member Author

@RaphBlanchet I extracted everything, it looks a bit better now! 😄

@charlesdemers charlesdemers merged commit 5732711 into main Oct 10, 2023
2 checks passed
@charlesdemers charlesdemers deleted the feature/refresh-queries-when-the-app-gains-focus-and-when-changing-language branch October 10, 2023 19:17
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