docs: explain custom React renderer compatibility #159
main fromfactory/document-custom-react-renderers·merged by tannerlinsley Documents why custom renderers that depend on private React internals need native React. The Vite reference also explains that exclusions apply by import specifier across the enabled environment.
Checked the published React Three Fiber 9.8.2 bundle and Redact 0.3.1 exports. Documentation follow-up for #157.
Summary by CodeRabbit#
- Documentation
- Clarified that the Vite plugin’s
skipoption excludes matching imports across each enabled environment, rather than individual dependencies or component subtrees. - Added guidance that custom React renderers using private React internals may fail when loaded through a Redact alias.
- Clarified that the Vite plugin’s
- 1
No actionable comments were generated in the recent review.
Walkthrough
-
The documentation describes how custom renderers that rely on private React internals may behave under a Redact alias. It also clarifies that Vite plugin
skipexclusions apply across each enabled environment and match import specifiers.Changes: Renderer compatibility documentation
Layer / File(s) Summary Document renderer compatibility and skip scope
docs/compatibility.md,docs/vite-plugin.mdThe compatibility guide states that custom renderers relying on private React internals may fail under a Redact alias and that skipcannot target a single dependency or component subtree. The Vite plugin guide clarifies that exclusions apply across each enabled environment.Estimated code review effort: 1 (Trivial) | ~4 minutes
Change: Other
Possibly related issues
TanStack/redact#157— The documentation describes custom renderer compatibility and Vite exclusion behavior noted in this issue.
Merge Risk:
Minimal · up to293b6-
The documentation clarifies renderer limitations and exclusion scope without changing runtime behavior. No merge-blocking issue was identified.
Pre-merge checks:
5-
Check name Status Explanation Description Check Check skipped - CodeRabbit’s high-level summary is enabled. Title check The title "docs: explain custom React renderer compatibility" matches the main change. The PR adds a "Custom React renderers" section to docs/compatibility.md about renderers that depend on private Re… Docstring Coverage No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Full details: Title check
-
Explanation
The title "docs: explain custom React renderer compatibility" matches the main change. The PR adds a "Custom React renderers" section to docs/compatibility.md about renderers that depend on private React internals under a Redact alias. It also clarifies in docs/vite-plugin.md that the skip option applies across each enabled environment. The title is short, specific, and follows a clear docs-prefix convention. It does not mention the Vite skip clarification, but that is a secondary change.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)
-
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
f692821d-cd4d-4f60-a49a-e3afaa001c3a
Commits-
Reviewing files that changed from the base of the PR and between 905f7369b2404d23fcd8c747582600c129fbb186 and 293b6d6da26806e017e2b3d8dbf171c930c581a9.
Files selected for processing: 2-
docs/compatibility.mddocs/vite-plugin.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.
-
-
tannerlinsley merged this105f52f
tannerlinsley closed this
Sign in to join this conversation.
⚠️ No Changeset found#
Latest commit: 293b6d6da26806e017e2b3d8dbf171c930c581a9
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR