-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I've got a component that calls ReactBridge and passes an optional block:
{{! my-react-bridge.hbs }}
<ReactBridge
@reactComponent={{@reactComponent}}
@props={{@props}}
@tagName={{@tagName}}
...attributes
>
{{yield}}
</ReactBridge>I'm invoking it without the block content:
<MyReactBridge @reactComponent={{this.disclaimer}} @props={{hash level=this.level}} />And it renders fine.
Now, when I update @props, e.g. by changing this.level on click, I get this error:
[tdm] Uncaught error: HierarchyRequestError: Failed to execute 'replaceChild' on 'Node': The new child element contains the parent.
at eval (yield-wrapper.jsx:17:1)
at commitHookEffectListMount (react-dom.development.js:23189:26)
at commitPassiveMountOnFiber (react-dom.development.js:24970:11)
at commitPassiveMountEffects_complete (react-dom.development.js:24930:9)
at commitPassiveMountEffects_begin (react-dom.development.js:24917:7)
at commitPassiveMountEffects (react-dom.development.js:24905:3)
at flushPassiveEffectsImpl (react-dom.development.js:27078:3)
at flushPassiveEffects (react-dom.development.js:27023:14)
at commitRootImpl (react-dom.development.js:26974:5)
at commitRoot (react-dom.development.js:26721:5)
at performSyncWorkOnRoot (react-dom.development.js:26156:3)
at flushSyncCallbacks (react-dom.development.js:12042:22)
at eval (react-dom.development.js:25690:13)
Metadata
Metadata
Assignees
Labels
No labels