Open tafelito opened 2 years ago
Thanks for the report! We'll look into this
So the cause of the issue is probably the SupressFirstRenderFilcker
being broken. We'll fix that with the new Blitz toolkit (https://github.com/blitz-js/blitz/discussions/3075).
Hey :wave: We also ran into that issue :) It seems like this was a problem before (see #274 ). Maybe this helps when trying to fix it
What is the problem?
When using
Page.authenticate = true
orPage.authenticate = { redirectTo: '/' }
you can see how the page actually flickers and then you get redirectedI believe this also happens when using
Page.suppressFirstRenderFlicker = true
Here's a codesandbox with a reproduction
https://codesandbox.io/s/wispy-sea-vpuo7?file=/app/users/pages/account.tsx
One thing that I found out is that I have any query that triggers the Suspense inside _app, then the fallback component will be shown instead. To test this, one thing that you can try is to uncomment the Layout component that uses the useSession hook here https://codesandbox.io/s/wispy-sea-vpuo7?file=/app/core/layouts/Layout.tsx
What are detailed steps to reproduce this?
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response