Skip to content

Commit 0ef14d8

Browse files
author
Ben Grynhaus
committed
Added docs for workaround/fix of issue #5
1 parent f59cd34 commit 0ef14d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/core/src/lib/components/wrapper-component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ export abstract class ReactWrapperComponent<TProps extends {}> implements AfterV
9494
this._setHostDisplay();
9595
}
9696

97+
// NOTE: Workaround/fix for Issue #5 (https://github.com/Microsoft/angular-react/issues/5).
98+
// The wrapper component isn't added to the root react nodes list when it's inside a `ReactContent` node, we manually add it (note that the root nodes list is a `Set`, so it won't duplicate nodes if already exist).
99+
// There's potentially a better solution instead of this
97100
const rendererData = this.renderer.data;
98101
if (isReactRendererData(rendererData)) {
99102
afterRenderFinished(() => {

0 commit comments

Comments
 (0)