You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thank you a lot for this lib, it made my life easier with PDFs!)
I had an issue in my app, I have input for PDF files. It work perfectly for the first time, but when I want to upload a new file, file name changes, file URL also changes but document preview itself doesn't change. I checked your Storybook with PDF input and as you can see, the same result here.
2024-08-01.14-05-20.mp4
The text was updated successfully, but these errors were encountered:
I have a similar issue but I experienced it when some documents that have been fetched want to be displayed according to user's choice, the pdf is not re-rendered. For my case, this solution can solve the issue by adding a key to DocViewer with a value of file name
so i think we can update mainState either in useEffect or obtain it from PDFProvider like this <PDFContext.Provider value={{ state, dispatch, mainState }}>
Hey, thank you a lot for this lib, it made my life easier with PDFs!)
I had an issue in my app, I have input for PDF files. It work perfectly for the first time, but when I want to upload a new file, file name changes, file URL also changes but document preview itself doesn't change. I checked your Storybook with PDF input and as you can see, the same result here.
2024-08-01.14-05-20.mp4
The text was updated successfully, but these errors were encountered: