Alcumus / react-doc-viewer

Apache License 2.0
207 stars 101 forks source link

Can not load different files of same type #118

Open lzinik opened 1 year ago

lzinik commented 1 year ago

Summary

Currently if the component is re-render with a document of the same type that it was rendered before, we got a blank screen.

Steps to reproduce

Re-render the component with a document of the same type as the document that it was rendered before.

Expected

The second document should be rendered by the component.

Actual

The second document is not rendered and we get a blank screen instead. If another document with a different type is rendered after this, it works fine and we can render again the first one that we passed of the other type.