Troubleshooting
The sheet doesn’t open when using StrictMode
Section titled “The sheet doesn’t open when using StrictMode”If you are using React StrictMode the sheet animations might not work as expected. This seems to be an issue in the motion library and I haven’t been able to find a good solution for it yet. You can see all motion issues related to the StrictMode here. Easiest solution is to just not use StrictMode 🤷♂️
Upgrading from v4 to v5
Section titled “Upgrading from v4 to v5”The most common migration issues are:
- Snap points not working: Ensure your snap points are in ascending order (
[0, 0.5, 1]instead of[1, 0.5, 0]) - Scrolling issues: Remove
Sheet.Scrollercomponents as scrolling is now handled bySheet.Content - Detent errors: Update detent prop values (
"full-height"→"default","content-height"→"content")
