#Why is nextjs so slow all of a sudden

19 messages · Page 1 of 1 (latest)

tame walrus
#

Didn't do next in like a month, made new project, did some stuff and now everything is so much slower, when i refresh it takes too long, 90% of saving would end up in hard refresh, whats up?

amber craterBOT
#

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

warm mesa
#

Theres a big chance that you have some bad code, for example:
A useEffect that does an api request, saves the result of it in an array, but the useEffect depency is also that result variable (infinite loop of api requests)

About the hard refresh, theres some sort of frontend error happening which results in a full rerender.

tame walrus
#

for data i am using faker.js

#

i am using vivaldi, would that do something?

#

I mean, even if its data related, before it didnt take THIS much time

warm mesa
#

Could you share your project/code?

warm mesa
tame walrus
tame walrus
#

yeah, its browser

#

thats so weird....

warm mesa
# tame walrus too big

im confused, you said you creatde a new project? either way you could just post the project on github. but thats fine ig

amber craterBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer
warm mesa
tame walrus
warm mesa
#

Alright well, good luck with your project!

tame walrus
#

thx m8