Why would the <Modal>
component cause a hydration error in Next 15?
#8782
Replies: 1 comment
-
Well, this is embarrassing. This issue was due to a separate function actually causing the hydration error. Specifically, a function that uses the Thanks everyone ✨ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello folks,
I'm attempting to use the
<Modal>
component fromreact-aria-components
in Next15.5.2
using the App Router. I have a component with this structure:But see this error when attempting to render:
Any thoughts on potential misconfigurations or setup requirements I'm missing that would cause this? It only appears to happen with certain buttons, other components also don't appear to trigger this. This also appears to happen when using a custom trigger with a generic
<button>
tag with the<Pressable>
component, and seems tied to the generatedid
value created by React Aria.Beta Was this translation helpful? Give feedback.
All reactions