usehooks icon indicating copy to clipboard operation
usehooks copied to clipboard

Error: useMediaQuery is a client-only hook

Open yeasin2002 opened this issue 9 months ago • 1 comments

I'm using useMediaQuery hook from @uidotdev/usehooks. My parent component is a client component then this error also occurs.

⨯ Error: useMediaQuery is a client-only hook at DashboardLayout (./src/app/dashboard/page.tsx:35:92) digest: "2779910239"

yeasin2002 avatar Dec 31 '24 11:12 yeasin2002