Supabase seemingly prevents viewTransitions
Hi there!
So basically I had a little SvelteKit website, nothing fancy, but with viewTransitions enabled and working. But since I added login with password and logged in to a test acount (following this guide my viewTransition stopped working. Now the page freezes for a few seconds and then display the destination page. It feels odd and unrelated but I just tested and am now sure that somehow Supabase (and/or its SSR integration with SvelteKit at least) causes this. I believe it is known, but is it fixable somehow..?
Thanks in advance 🙂
2 Replies
If you are performing a blocking action then the viewTransition won't be smooth. You should look at where you are performing a blocking action and see how you can best move it to elsewhere in your code.
Well, from what I can see it might be because of the block containing invalidate("supabase:auth"), but even removing it now doesn't change anything