Closed
Description
I haven't found much in docs, how can I pass context what normally would be done by a parent component?
if I do something like:
setContext('foo', {
bar: { kek: 'bur' },
});
render(...);
I get an error: Function called outside component initialisation
and I haven't noticed a way to pass the context to render function call.
Is there any better way than creating a redundant component parent?
Metadata
Metadata
Assignees
Labels
No labels