Skip to content

Is it possible to use context inside react-pdf components? #1593

Answered by jeetiss
joseDaKing asked this question in Q&A
Discussion options

You must be logged in to vote

@joseDaKing sure!
hooks and context work fine with react-pdf components, but you can't share the context between react-dom and react-pdf, because react-pdf creates new reconciler that doesn't know anything about parent context and react doesn't provide a way to hookup contexts automatically. You can check workaround in this issue #743

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joseDaKing
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