normally. We can see the context in the owner chain - If I used children() helper inside the ToastContext, when the component use
useContext
useContext
, it results in a undefined context. There is no context in the owner chain
So: - Why using children() helper does not keep the correct owner? - How is an owner attached? I assume that as long as it is inside a JSX element, that JSX element is the owner, but it seems not to be the case here.