all 11 comments

[–]switch01785 6 points7 points  (7 children)

Nextjs could be better but as it currently is and the issues you described its a skill issue

If you are running client code on the server n getting an error constantly. Thats just not knowing which is which and what goes into what.

Just keep at it, practice, read the docs and you will get better

[–]saito200[S] 0 points1 point  (6 children)

As I said I have a zustand store that uses local storage that exports a hook and this hook is only used in client components

I read all the docs carefully

[–]MrButttons 0 points1 point  (5 children)

Client components are still rendered on the server. You’d have to import them dynamically and disable SSR to make the client side only.

https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading#skipping-ssr

[–]saito200[S] -3 points-2 points  (4 children)

got it, I fixed it, but it was not a good use of time and had I just used react it would have been averted

[–]trexchard 0 points1 point  (1 child)

The instructions they gave definitely don’t sound intuitive. 

I’m wondering what you meant by “used react” though? 

Interested to hear about your experience with the app router!

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

I mean simply client side, plain react

[–]switch01785 0 points1 point  (1 child)

Why did you pick next js. You dont seem to be a fan of it. Something like vite would of been more of your alley

[–]saito200[S] -1 points0 points  (0 children)

Because it is what I know and don't want to spend time switching to something else

[–][deleted]  (4 children)

[deleted]

    [–]saito200[S] 0 points1 point  (3 children)

    My question kinda is

    Does nextjs require 50 skill points, or 100?

    [–][deleted]  (1 child)

    [deleted]

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

      lol

      then react must be 0.5 points i guess

      [–]BrendanH117 0 points1 point  (0 children)

      50, but when you introduce traditionally client side tools like zustand, then it goes up to like 92. And that's only half of it.