tulupinc / flowbite-next-starter

flowbite-next-starter.vercel.app
162 stars 92 forks source link

Sidebar component must be rendered on client #50

Closed nairanvac closed 1 year ago

nairanvac commented 1 year ago

Hello,

I noticed that any pages that use the Sidebar component have to use "use client". I was hoping to use the Sidebar in my default layout for every page. Does this mean that none of my pages can be rendered server-side?

Pardon me if this isn't an issue (or isn't specific to this repo).

tulup-conner commented 1 year ago

Anything using React client-side features like Context won't work in the server anymore. This is a React design decision; not mine.