-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use import meta env #187
Use import meta env #187
Conversation
…e from environment variable
@@ -25,7 +25,8 @@ const GlobalDataProvider = ({ children }: { children: ReactElement }) => { | |||
|
|||
useEffect(() => { | |||
const update = async () => { | |||
queryClient.resetQueries(); | |||
await queryClient.cancelQueries(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the cancel to cancel any existing queries prior to call to resetQueries. Saw some oddities when switching process IDs (e.g., mainnet to testnet) and this seems to have helped.
Visit the preview URL for this PR (updated for commit ea4f228): https://ar-io-network-portal-a40ee--pr187-use-import-meta-env-7r30vfj6.web.app (expires Wed, 26 Mar 2025 17:49:20 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 7abfae09c4446982a71cbb94b0cbf4688377a111 |
No description provided.