Adds a useEffect call to the DocumentView component to listen for changes to the config props passed to the component (e.g. the manifest link, document name, etc) and dispatch an action to the Redux store to reload the document and glossary data. This improves the previous behavior in this situation, namely just crashing and displaying a blank page.
Also improves error handling in the case that one of the folioID values in the URL parameters is not actually included in the folio list; that pane will now redirect back to the grid view in that case.
In this PR
useEffect
call to theDocumentView
component to listen for changes to the config props passed to the component (e.g. the manifest link, document name, etc) and dispatch an action to the Redux store to reload the document and glossary data. This improves the previous behavior in this situation, namely just crashing and displaying a blank page.folioID
values in the URL parameters is not actually included in the folio list; that pane will now redirect back to the grid view in that case.