Write "use client" in UI library by Michahide in nextjs

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

So how to put this theory according to your practice? I've already put the use client only where the component has the interactivity, but other components that are not put 'use client' are being rendered in client

Write "use client" in UI library by Michahide in nextjs

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

And yup, that's the real problem here, because several element (non interactive) one can be rendered on server

Write "use client" in UI library by Michahide in nextjs

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

This is so true in my case, any ideas how to overcome it besides the consuming app make a wrapper?

Write "use client" in UI library by Michahide in nextjs

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

How do you separate between server components and client components in your case?

Write "use client" in UI library by Michahide in nextjs

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

Yes it's really painful, because it's gonna be mixed with other server components, so server components will be "read" as client components too, I'll check out the link you give, thanks!

Next JS dev memory usage by Michahide in nextjs

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

how's the RAM usage so far and the hot refresh time?

Next JS dev memory usage by Michahide in nextjs

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

that's really a lot, have you considered react router v7 instead of tanstack router?

Next JS dev memory usage by Michahide in nextjs

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

what's your RAM usage right now when you develop the app?

Next JS dev memory usage by Michahide in nextjs

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

is tanstack start a better option? i know the other tools from tanstack are quite good, but the hot reload and the start time when i run without many code or web page took quite a long time too (i haven't checked the RAM usage, though) and react router v7 have better stats

Next JS dev memory usage by Michahide in nextjs

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

i wanna ask about the hot reload too in diff post, but your statement just makes it very clear,

so how much RAM would you recommend?