using react shadcn and astro with client:load throws invalid hook call errors if I use client:only these errors disappear
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.
Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.
10:11:02 [ERROR] Cannot read properties of null (reading 'useCallback')
Location:
/Users/x/node_modules/@radix-ui/react-compose-refs/node_modules/react/cjs/react.development.js:1456:33
Stack trace:
at process.env.NODE_ENV.exports.useCallback (/Users/x/node_modules/@radix-ui/react-compose-refs/node_modules/react/cjs/react.development.js:1456:33)
at TooltipTrigger (file:///Users/x/node_modules/@radix-ui/react-tooltip/dist/index.mjs:170:26)
at renderWithHooks (/Users/x/node_modules/react-dom/cjs/react-dom-server.node.development.js:4797:19)