Next.js Discord

Discord Forum

Memory Leak Problem Server Page Component

Unanswered
Nika Kopadze posted this in #help-forum
Open in Discord
so why do i have memory leak problems? when i use page component as client and fetch data with react -tanstack query it works fine.
what im doing wrong?
first time when i navigate to brands page it works fine, and then when i try to navigate home page or any other route it stops working.
even when i try to open localhost on new tab it dosnot work.

12 Replies

Dutch
What's the relation between memory leak and page loads
So when i navigate to brands page, it works fine but then when i try to navigate to any other route it stops working. Even if i try to open localhost on new tab it stops working. And memory usage goes too high around 13.5gb with increased pressure. ( after checking activity monitor) then server stops and i get memory leak error
Dutch
Hmm, do you have anything at terminal or browser console
@Nika Kopadze Click to see attachment
Only this after server stops working. Nothing more
@Nika Kopadze Only this after server stops working. Nothing more
Dutch
Do you have low end spec pc
macbook m1 pro 16gb.
im also using server side fetching on landing page and it works fine.
@Nika Kopadze im also using server side fetching on landing page and it works fine.
Dutch
Can page be so big to parse or any useffect runs wrong
so i have figured out, when i commented(deleted) pagination and 1 other component it worked fine,
also this method on pagination worked fine. any idea why this happens?
still trying to figure it out ;d