hatzilu
hatzilu
TTCTheo's Typesafe Cult
Created by hatzilu on 6/17/2024 in #questions
Global state in nextJS 14
Hey yall, I see that with the way Next.js and server components are heading, we're moving away from the days of wrapping your entire app in context providers and whatnot. My question is, how do i get access to global state in Next.js without making my entire app client-side rendered? I saw solutions like nextauth that also wrap your entire app in a provider - doesn't that make your app client-side rendered? Am i missing something here? is there a way to have global state in my next app while also keeping the benefits of SSR?
9 replies
TTCTheo's Typesafe Cult
Created by hatzilu on 6/16/2024 in #questions
Building your own icon library
Hey yall, i was wondering; for the people who work at a company and need to maintain a custom icon library made by your design team - how do you implement them in your codebase without a lot of copy and pasting? I started by moving our icons to the /public folder, but i realize this feels really weird, i was wondering if there's a solution out there that's a bit less daunting.
10 replies