Skip to content

Pass data from context provider to screen using RxJS #6967

Answered by KrisLau
KrisLau asked this question in Q&A
Discussion options

You must be logged in to vote

Ended up using fromRenderProps() from recompose. Example code:

fromRenderProps(ExampleContext, ({exampleState}) => ({exampleState})),

Documentation: https://github.com/acdlite/recompose/blob/master/docs/API.md#fromrenderprops

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@KrisLau
Comment options

@voliva
Comment options

@KrisLau
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by KrisLau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants