#Suspense has made loading of data very slow on page refresh
58 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)
Suspense has made loading of data very slow on page refresh
can you provide whats inside your BillingCardWrapper?
just to get this right, this is what you want, right?
yes
but nvm it
i think its our issue
huh?
dont you want to solve that issue?
i do, rn looking at things i changed in that commit
alr
but strange, no changes related to that file were done in that commit
its just that the fallback isnt showing up anymore
hmmm looks good for me. You done it nearly like I done it. Can you share a repro?
the repo is private sadly :((
you can provide a repro only of the specific error?
this doesnt happen on other apis to us, only 1 api
its strange that the billingcard is showing even when data isnt visible
you done it now like this?
console.log('before fetch')
const data = await get("/application/${jobid}/info");
console.log("after fetch", Object.keys(data))
yes
add this to it:
await new Promise(resolve => setTimeout(resolve, 2000))
before the get line?
or replacing it
like this:
console.log('before fetch')
const data = await get("/application/${jobid}/info");
await new Promise(resolve => setTimeout(resolve, 2000))
console.log("after fetch", Object.keys(data))
hmm didnt work
give me a moment...
ig its not a nextjs issue
it works before that commit
it looks like I couldn't reproduce the issue: https://codesandbox.io/p/devbox/zmss8g
So either share your own repro (only the issue itself) or update my existing one
phew found the bug!!!!!!!!!!!!!!!!!!
dynamic import*
how else do i import it?
if i dont load it dynamically then i'll get this err
check the server console whats the error serverside
we need your server log. The browser console and the browser network tab is all inside the browser (client). Check the server console (where you started your server)
import html2pdf from "html2pdf.js";
thats causing it
hm idk the library sorry