Closed connor-baer closed 9 months ago
Latest commit: 452d331e99da3258879df2d0e37cf6568ef4c023
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Nice, thanks!
Context
The
useId
hook is the only hook that is allowed in client, server and shared components, which means it doesn't require theuse client
directive. From the React docs:Changes
useId
. Initially, I tried to amend the regular expression, but a simple string comparison seemed simpler and more performant.