I'm trying to use the AppShell in my Next JS app and it seems to only work if I add 'use client' at the top of my app shell file, otherwise I get the following error:
`TypeError: (0 , mantine_hooks__WEBPACK_IMPORTED_MODULE_1_.useDisclosure) is not a function or its return value is not iterable
at RootAppShell (./components/AppShell.tsx:18:95)
at stringify (<anonymous>)
at stringify (<anonymous>)
digest: "1848237298"
4 |
5 | export function RootAppShell() {
6 | const [opened, { toggle }] = useDisclosure();`
Doesn't 'use client' remove any SSR functionalities from my app?
I need a way to use the app shell with SSR.