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

Add Mirador Redux Store observer to catch changes in Mirador #128

Open
svandaalen opened this issue Jul 10, 2024 · 1 comment
Open

Add Mirador Redux Store observer to catch changes in Mirador #128

svandaalen opened this issue Jul 10, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request on hold

Comments

@svandaalen
Copy link
Collaborator

Inspiration:

Out of the box, Mirador does not support an observer pattern to detect changes happening in the application. A (hacky) way around this is to build our own observer in TAV that observes the Mirador Redux Store and checks whether the prev value of a part of Mirador is different from the curr value. Currently, we will use this custom observer to check whether the canvasId changes, which indicates that the user pressed the prev/next button in Mirador or jumped to an image through the gallery view. When this change has been detected, TAV will load in the new text and annotations.

@svandaalen
Copy link
Collaborator Author

Waiting on knaw-huc/broccoli#60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request on hold
Projects
None yet
Development

No branches or pull requests

1 participant