Adding cMapUrl re-render Page and give TypeError: Cannot read properties of null (reading 'sendWithStream') #1590
-
Hi, It displays pdf file with no problem without cMapUrl, here is my code:
Here's my thought. Removing Before I added cMapUrl, this did not happen (and I don't think page was re-rendered). I tried adding some kind of wrapper to prevent page from rendering before pdf file is ready:
but getting the same error.. Does anyone have idea on this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Read the docs. Define your options outside of React component or memoize it if you absolutely have to have it inside. |
Beta Was this translation helpful? Give feedback.
Read the docs. Define your options outside of React component or memoize it if you absolutely have to have it inside.