#can anyone help me? I can not understand why suspense doesn't work?
24 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
help me please
@pearl swift Have your tried with text inside p tag. Like <p>Loading..</p>
I did this too, it doesn't work
My suspense is also working with server component. God knows what's happening with next new version.
@pearl swift If you find a solution, do let me know.
I haven't found it yet
@pearl swift try navigating to the page
so like click a link tag
which takes you to the site
can you help me? if i post the link in github?
Suspense works only on navigation
not when you refresh the screen
i think ppr is aiming to fix that
not sure
I just cloned Your build, the problem is not in Suspense, not even in ExclusiveProducts component, but in Header.
For now, that's all I got. Gonna dive in a bit deeper, to see what exactly in Header is causing a waterfall.
I might be wrong, but it seems like this part is causing the unexpected long loading that You see. Header > Search:
{categories.map(({ title }, index) => (
<option key={title + index} value={title}>
{title}
</option>
))}
With the above code snippet included:
Without it:
thank you
is it solved?
the problem was that my data was loaded too quickly via json-server