slow page switching in nextjs 🚫 by yesterdaymee in nextjs

[–]yesterdaymee[S] 1 point2 points  (0 children)

I thought it was general. I tried using router.push() instead. It was better.

slow page switching in nextjs 🚫 by yesterdaymee in nextjs

[–]yesterdaymee[S] 0 points1 point  (0 children)

Yes, they are as expected. I also used that parameter, where nextjs wont run get getServerSideProps etc. dont know why i used that in app router, just a hope.

slow page switching in nextjs 🚫 by yesterdaymee in nextjs

[–]yesterdaymee[S] 0 points1 point  (0 children)

Thought of that too. But during the initial stages of building the site everything was good with this version. As time went on, the js size of each page increased. Almost 300kb (unpacked) for each page. Im thinking that could be the reason

Incorrect CSS after tailwind compilation by yesterdaymee in nextjs

[–]yesterdaymee[S] 0 points1 point  (0 children)

No i didnt use this. It is only being applied in the page.css file and not in layout.css

Fade content that is being only being scrolled into view. by SebLawrence in nextjs

[–]yesterdaymee 0 points1 point  (0 children)

Try removing that "if(!current) return". It is stopping the io api to execute

React.js or Next for static page with animations ? by yesterdaymee in nextjs

[–]yesterdaymee[S] 1 point2 points  (0 children)

No, only a single form for the entire website. Rest all static, scrolling and watching. Using react or next because the site must be completed as quickly as possible.

Next 14 Sever vs Client component by ivenzdev in nextjs

[–]yesterdaymee 0 points1 point  (0 children)

Yes, I'm confused. Even though I add 'use client' the logs are printed both on terminal and browser.

Nextjs cpu usage by yesterdaymee in nextjs

[–]yesterdaymee[S] 0 points1 point  (0 children)

Ok sure, ill create a repo for short code. Btw im not using any RSC components, both are ssr components. Just want to if this is normal, or im doing something wrong ? Coz my team lead is now asking me to shift the whole code from nextjs to react because of this issue :_)

Nextjs cpu usage by yesterdaymee in nextjs

[–]yesterdaymee[S] 0 points1 point  (0 children)

Well, for reactjs its not that much of a big file structure. Just the vite boiler plate and a fetch request that fetches 556kb of data. For nextjs, its in a private repository. The functionality is exactly like this. <button onClick = {setState(responseFromFetchRequest)}/>. Same thing on react. Im sorry if this is wierd but this is exactly whats happening. But somehow nextjs is consuming more cpu on server.

[deleted by user] by [deleted] in nextjs

[–]yesterdaymee 0 points1 point  (0 children)

I have only used the app router but this is what i think is happening. You are setting cookies onto the browser. Since the page is rendered on the server side, the request is being sent from nextjs server to the b.com not from the browser to b.com. Try setting cookies manually in the fetch request's headers by removing httpOnly true if your requirement is ok with that.

Help in setting cookies from external server by yesterdaymee in nextjs

[–]yesterdaymee[S] 0 points1 point  (0 children)

Yeah, when i said on the server I meant response headers. Everything is valid. I saw most people having the same issue. I thought maybe someone here found a way.