Skip to content

Commit

Permalink
Use a different namespace from useId to avoid conflict with facebook#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Jan 8, 2025
1 parent 225ee01 commit cb3f0c6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ export function assignViewTransitionAutoName(
if (getIsHydrating()) {
const treeId = getTreeId();
// Use a captial R prefix for server-generated ids.
name = '\u00AB' + identifierPrefix + 'R' + treeId + '\u00BB';
name = '\u00AB' + identifierPrefix + 'T' + treeId + '\u00BB';
} else {
// Use a lowercase r prefix for client-generated ids.
const globalClientId = globalClientIdCounter++;
name =
'\u00AB' +
identifierPrefix +
'r' +
't' +
globalClientId.toString(32) +
'\u00BB';
}
Expand Down

0 comments on commit cb3f0c6

Please sign in to comment.