Skip to content

chore(redact/hydration): rename internal '__tdom*' scroll-guard globals to '__redact*'#12

Open
sukvvon wants to merge 1 commit intoTanStack:mainfrom
sukvvon:chore/hydration-rename-tdom-globals
Open

chore(redact/hydration): rename internal '__tdom*' scroll-guard globals to '__redact*'#12
sukvvon wants to merge 1 commit intoTanStack:mainfrom
sukvvon:chore/hydration-rename-tdom-globals

Conversation

@sukvvon
Copy link
Copy Markdown

@sukvvon sukvvon commented May 9, 2026

Summary

  • Rename leftover debug globals: __tdomScrollGuardInstalled__redactScrollGuardInstalled, __tdomScrollLog__redactScrollLog, used only by installHydrationScrollGuard() in dom/features/hydration/full.ts.
  • Cleanup miss from the @tanstack/redact consolidation in refactor!: rename to @tanstack/redact and consolidate into single package #2: other internal identifiers (notably Symbol.for('@tanstack/redact.ReactSharedInternals')) already use the new prefix — these two window.__* debug globals were missed.
  • Not part of any contract: typed via (window as any), no consumer references in source/tests/examples, stub variant doesn't reference them. Pure rename, behavior unchanged.

Test plan

  • pnpm test — 727/727 pass
  • pnpm test:types — clean
  • grep ScrollGuardInstalled|ScrollLog repo-wide — only the 6 sites updated in this PR

@sukvvon sukvvon force-pushed the chore/hydration-rename-tdom-globals branch from d47011b to e405832 Compare May 9, 2026 15:00
@sukvvon sukvvon changed the title chore(hydration): rename internal '__tdom*' scroll-guard globals to '__redact*' chore(redact/hydration): rename internal '__tdom*' scroll-guard globals to '__redact*' May 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.

1 participant