Repository navigation
refactor(react)!: delete the React basic catalog implementation - #2630
Merged
Merged
Conversation
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 11, 2026 18:52
6d5b331 to
a86b4ae
Compare
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the React renderer by removing local React implementations of basic catalog components in favor of web_core's basic catalog Custom Elements, updating imports and tests accordingly. To avoid a race condition where Lit components render on their first paint before the markdown renderer is set, it is recommended to use useLayoutEffect instead of useEffect in A2uiSurface to synchronously configure the markdown renderer during React's commit phase.
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
2 times, most recently
from
September 14, 2026 19:33
60c1bf8 to
7646f12
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 14, 2026 19:41
7646f12 to
4aee1d8
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 14, 2026 23:24
4aee1d8 to
e40022f
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 14, 2026 23:42
e40022f to
8d28391
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
2 times, most recently
from
September 18, 2026 21:04
0cf7244 to
83db1f3
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 18, 2026 21:08
83db1f3 to
cfa8f1a
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 18, 2026 21:40
cfa8f1a to
8234a11
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 18, 2026 22:34
8234a11 to
4f468bd
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 21, 2026 17:57
4f468bd to
689d3c3
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 24, 2026 00:25
3c4ad74 to
a0cb778
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 24, 2026 00:27
a0cb778 to
ca91ce4
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 24, 2026 00:39
ca91ce4 to
c720823
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 24, 2026 00:40
c720823 to
532b077
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 24, 2026 17:48
532b077 to
40ad79b
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 24, 2026 19:44
40ad79b to
a1c0baa
Compare
josemontespg
force-pushed
the
react-delete-basic-catalog-implementation
branch
from
September 25, 2026 00:05
a1c0baa to
52351a2
Compare
josemontespg
commented
Sep 30, 2026
This was referenced Oct 3, 2026
The v0_9 renderer renders the basic catalog through the Web Components in @a2ui/web_core/v0_9/basic_catalog, so the 23 duplicated React implementations are removed along with their tests. Consumers import basicCatalog and the individual components from @a2ui/web_core/v0_9/basic_catalog. MarkdownContext and useMarkdownRenderer keep their names and behaviour: A2uiSurface forwards the context value into web_core's setMarkdownRenderer. The basic catalog no longer server-renders, since custom elements produce no markup outside a browser.
gspencergoog
approved these changes
Oct 5, 2026
Collaborator
Author
|
Thanks for the review! |
This was referenced Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The v0_9 React renderer renders the basic catalog through the Web Components in
@a2ui/web_core/v0_9/basic_catalog, so the 23 duplicated React implementations are removed along with their unit tests.What changes for consumers
Import the catalog and the individual components from web_core:
MarkdownContextanduseMarkdownRendererkeep their names, their behaviour, and their import path.A2uiSurfacealready feeds the context value to web_core's basic catalog (#2910), so markdown wiring in consumer code does not change.Custom React components are unaffected:
createComponentImplementationstill returns a React implementation, and the renderer still renders it through React.Breaking
@a2ui/react/v0_9no longer exportsbasicCatalog,Text,Button,Card, or the other basic components.Testing
renderers/reactunit tests pass;integration-scenarios.test.tsxnow drives the web_core catalog end to end and waits for Lit's update cycle.