You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there are no child nodes of the component (i.e. it is not being used as a block), there is still a children array passed to the React.createElement containing a YieldWrapper component. We have a component that throws an error (beyond our control) when passed children.
Would it make sense to only create the children/YieldWrapper when childNodes.length > 0 like below? Happy to send a PR.
If there are no child nodes of the component (i.e. it is not being used as a block), there is still a children array passed to the
React.createElement
containing aYieldWrapper
component. We have a component that throws an error (beyond our control) when passed children.Would it make sense to only create the children/
YieldWrapper
whenchildNodes.length > 0
like below? Happy to send a PR.The text was updated successfully, but these errors were encountered: