Is it possible to use context inside react-pdf components? #1593
Answered
by
jeetiss
joseDaKing
asked this question in
Q&A
-
Is it possible to use context inside react-pdf components? |
Beta Was this translation helpful? Give feedback.
Answered by
jeetiss
Nov 12, 2021
Replies: 1 comment
-
@joseDaKing sure! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
joseDaKing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@joseDaKing sure!
hooks and context work fine with
react-pdf
components, but you can't share the context betweenreact-dom
andreact-pdf
, becausereact-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