graduate primer_react_theme_provider_remove_ssr_handoff ff#8057
graduate primer_react_theme_provider_remove_ssr_handoff ff#8057francinelucca wants to merge 3 commits into
Conversation
🦋 Changeset detectedLatest commit: fda08a3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
There was a problem hiding this comment.
Pull request overview
Removes the primer_react_theme_provider_remove_ssr_handoff feature flag and associated SSR handoff/script logic from ThemeProvider, simplifying how resolvedColorMode is determined and making preventSSRMismatch a deprecated no-op.
Changes:
- Removed SSR handoff cache +
<script type="application/json">injection and feature-flag gating fromThemeProvider. - Deprecated
preventSSRMismatch(now has no effect) and removed related unit tests. - Removed the graduated feature flag from
DefaultFeatureFlags.
Show a summary per file
| File | Description |
|---|---|
| packages/react/src/ThemeProvider.tsx | Removes SSR handoff/script logic and feature-flag checks; deprecates preventSSRMismatch as a no-op. |
| packages/react/src/FeatureFlags/DefaultFeatureFlags.ts | Deletes the graduated primer_react_theme_provider_remove_ssr_handoff default flag entry. |
| packages/react/src/tests/ThemeProvider.test.tsx | Removes tests and imports related to SSR handoff/script rendering and the feature flag. |
Copilot's findings
- Files reviewed: 3/3 changed files
- Comments generated: 2
Co-authored-by: francinelucca <40550942+francinelucca@users.noreply.github.com>
Changelog
Removed
Rollout strategy
Testing & Reviewing
Merge checklist