Skip to content

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 🤷‍♂️

The most common migration issues are:

  1. Snap points not working: Ensure your snap points are in ascending order ([0, 0.5, 1] instead of [1, 0.5, 0])
  2. Scrolling issues: Remove Sheet.Scroller components as scrolling is now handled by Sheet.Content
  3. Detent errors: Update detent prop values ("full-height" → "default", "content-height" → "content")