Infinite Loading Issue After Submitting Onboarding Form in Production
Unanswered
Tan posted this in #help-forum
TanOP
The issue occurs when we submit the onboarding form—it disappears as expected. However, after submission, if we try to refresh the page, the app goes into an infinite loading state. Without refreshing, the app gets stuck. This issue only happens in production, not locally.
I'm a beginner with this, so I'm confused about how we import and use the Supabase client in the page. There are two queries, checkOnboarding and checkUser, which are defined in the "user server" file. Since Supabase provides both client-side and server-side options, I'm unsure which one is better to use in this case.
For more context, the <OrganizationFormModal> is used to edit the onboarding information. However, initially, we show the onboarding form if the user is not onboarded. The user fills out the form and submits it, but after submission, the infinite loading issue arises.
I've been stuck on this issue for four days now. Please help me resolve it!
I'm a beginner with this, so I'm confused about how we import and use the Supabase client in the page. There are two queries, checkOnboarding and checkUser, which are defined in the "user server" file. Since Supabase provides both client-side and server-side options, I'm unsure which one is better to use in this case.
For more context, the <OrganizationFormModal> is used to edit the onboarding information. However, initially, we show the onboarding form if the user is not onboarded. The user fills out the form and submits it, but after submission, the infinite loading issue arises.
I've been stuck on this issue for four days now. Please help me resolve it!