#can anyone help me? I can not understand why suspense doesn't work?

24 messages · Page 1 of 1 (latest)

opal brookBOT
#

🔎 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)

pearl swift
#

help me please

minor nacelle
#

@pearl swift Have your tried with text inside p tag. Like <p>Loading..</p>

pearl swift
minor nacelle
#

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.

pearl swift
#

I haven't found it yet

celest lion
#

@pearl swift try navigating to the page

#

so like click a link tag

#

which takes you to the site

pearl swift
#

can you help me? if i post the link in github?

celest lion
#

Suspense works only on navigation

#

not when you refresh the screen

#

i think ppr is aiming to fix that

#

not sure

flat sigil
flat sigil
#

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:

pearl swift
#

thank you

upper dew
pearl swift
#

the problem was that my data was loaded too quickly via json-server