Rank 3: Container
i have an issue now, it seems the user database doesn't access all images like profiles and badges before the page loads and that gives me uncontrolled undefined errors
which makes the page really unstable
what should i do?
Votes
0
Replies
7
Participants
Unknown
Messages
8
Rank 3: Container
i have an issue now, it seems the user database doesn't access all images like profiles and badges before the page loads and that gives me uncontrolled undefined errors
which makes the page really unstable
what should i do?
Rank 3: Container
well i fixed it with a really weird piece of code that works properly for some reason
Rank 3: Container
it only renders Home component when the users database is more than 0
That is a normal behavior, I don't which framework are you using, but you have to considerate requests are not made all together, and not all request finish to load at the same time, that is why you'll get undefined values at some renders.
To solve that, you normally use a loader, or a data checker as you already did it
Rank 3: Container
yeah yeah no worries
Rank 3: Container
im using uhh
Rank 3: Container
vite-react
[SOLVED] Server data wont load before page