-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing file in the pdf component. #30
Comments
Same problem here, we sould correct this. I'll propose a pull request |
just created #33 Edit: Ok, was too quick on this one. Makes it loop forever rendering the same pdf. Going to check and fix this. |
Ok I got this right now, tested and works fine ! Ready to merge |
Thanks @ThomasVuillaume, I just merged it. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This part in componentWillReceiveProps makes it so that that i can change the pdf if i change the file prop, the problem is that i have to use documentInitParameters because without that i cannot pass other parameters to getDocument. But if i change the url in documentInitParameters the component will not rerender because its allways asking it file,content or binaryContent have been changed and if not it will not trigger loadPDFDocument even with
because newSource and oldSource are the same.
The text was updated successfully, but these errors were encountered: