W
Wasp•2y ago
maksym36ua

Google Auth callback URL gets called twice

Hey, after picking up a Google account and getting back from the consent screen the callback is fired twice for some reason. Haven't seen anything like this before, is this an issue on my side, or Wasp user's code cant affect the login process?
No description
9 Replies
maksym36ua
maksym36uaOP•2y ago
My .wasp file
No description
maksym36ua
maksym36uaOP•2y ago
Login page
No description
maksym36ua
maksym36uaOP•2y ago
and auth google.ts config
No description
miho
miho•2y ago
Stack Overflow
React 18 strict mode causing component to render twice
The changes to strict-mode in React version 18 causes my code to render twice, which causes an error in axios abort controller, but I don't know how to clear the error from the browser console afte...
miho
miho•2y ago
Are you using the canary version?
maksym36ua
maksym36uaOP•2y ago
Yep Note, this only happens in Strict + development mode. In a production build, effects will only be called once and when their dependencies change. -- indeed, after I've deployed the app to Fly it works fine (because it's not in dev mode anymore)
MEE6
MEE6•2y ago
Wohooo @maksym36ua, you just became a Waspeteer level 25!
miho
miho•2y ago
It's something we should look into and fix if it's fixable 🙂 good catch Maks
martinsos
martinsos•2y ago
This is due to React's StrictMode, yes! @miho shoudl we open an issue for it? We can probalby handle it by modifying our components?
Want results from more Discord servers?
Add your server