Skip to content

chore(fuselage-hooks): Deprecate useUniqueId in favor of React 18 useId#1896

Closed
Harshit2405-2004 wants to merge 2 commits intoRocketChat:mainfrom
Harshit2405-2004:chore/replace-use-unique-id
Closed

chore(fuselage-hooks): Deprecate useUniqueId in favor of React 18 useId#1896
Harshit2405-2004 wants to merge 2 commits intoRocketChat:mainfrom
Harshit2405-2004:chore/replace-use-unique-id

Conversation

@Harshit2405-2004
Copy link
Contributor

@Harshit2405-2004 Harshit2405-2004 commented Mar 6, 2026

What does this PR do?

Replaces usages of useUniqueId with useId from react.

Motivation

The custom useUniqueId hook is deprecated, React 18's built-in useId improves SSR hydration stability.

Changes Made

  • Replaced usages across packages with useId.
  • Marked useUniqueId as @deprecated.

@changeset-bot
Copy link

changeset-bot bot commented Mar 6, 2026

🦋 Changeset detected

Latest commit: 274d04e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@rocket.chat/fuselage-hooks Patch
@rocket.chat/fuselage Patch
@rocket.chat/fuselage-forms Patch

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

@dougfabris dougfabris closed this Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants