Skip to content
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

Improve handling of component props updating #123

Merged
merged 15 commits into from
May 20, 2024
Merged

Conversation

ajolipa
Copy link
Collaborator

@ajolipa ajolipa commented May 17, 2024

In this PR

  • 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.

@ajolipa ajolipa requested a review from NickLaiacona May 17, 2024 02:13
@ajolipa ajolipa merged commit 2b43c35 into dev May 20, 2024
@ajolipa ajolipa deleted the RB-state-change-fix branch May 20, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant