Adding a child component manually with a custom ComponentContext #205
malliaridis
started this conversation in
Show and tell
Replies: 2 comments 3 replies
-
Thanks for sharing! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for sharing @malliaridis . I thing it's worth adding to docs in https://arkivanov.github.io/Decompose/component/custom-component-context/ section. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was surprised how easy it was to find a solution for this problem. I wanted to add a child component manually (according to the documentation, but it had to have the custom component context I am using. So my solution was to write this extension function:
Now I can freely create child components like described in the documentation inside my components with custom context:
Beta Was this translation helpful? Give feedback.
All reactions