🪲 hook/usePortal is not SSR friendly
Closed this issue · 0 comments
andresin87 commented
URL
https://sui-components.vercel.app/workbench/hook/usePortal/demo
Steps to reproduce
use usePortal on a SSR site
it will broke cuz there is not document.body on first server render
Expected Behavior
remove document.body from default arguments
Screenshots
No response
Which device have you used?
- Desktop
- Tablet
- Mobile
- smartTV
Which operating systems have you used?
- Windows
- Linux
- macOS
browser and version
No response
Additional info
No response