Suspense fallback Not Showing on Vercel Deployment #10364
Unanswered
alamin-hossain-tech
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a Remix app where I'm using Suspense with an Await component to load data and show a fallback skeleton during loading. This works perfectly in my local environment. However, after deploying the app to Vercel, the fallback or loading skeleton doesn't appear. Instead, it seems to wait until all the data is loaded before rendering anything.
Here's my code:
Loader Function:
Action Function:
Issue:
On localhost:
The skeleton or loading state (fallback={
On Vercel (Production):
The fallback does not appear. The page waits until all the data is loaded and then renders everything at once.
Things I've Tried:
Checked network requests; the loader is being called as expected.
Ensured Suspense and Await are implemented correctly.
Debugged if useLoaderData or the loader response had issues, but they seem fine.
Questions:
Could this be related to server-side rendering on Vercel?
Is there a known limitation with Suspense or Await in Remix on certain deployments?
Any tips or insights to resolve this?
Beta Was this translation helpful? Give feedback.
All reactions