When loading Mirador with the annotation plugin and another plugin that wraps the window component then the window flickers when the annotation panel is open.
The flickering happens when you move the mouse over the image or the annotation list items. I noticed that without the test plugin only HOVER_ANNOTATION actions are dispatched but with the test plugin UPDATE_VIEWPORT action are dispatched in addition.
The test plugin only renders the next component via <TargetComponent {...targetProps} /> so I assume it does not disturb the annotation plugin. Also the test plugin does not trigger rerendings by itself. React.memo didn't work either.
When loading Mirador with the annotation plugin and another plugin that wraps the window component then the window flickers when the annotation panel is open.
I wasn't able to compile Mirador with the annotation plugin on Stackblitz and Codesandbox so I set up a repository to demonstrate the problem: https://github.com/charbugs/mirador-annotation-plugin-issue
The flickering happens when you move the mouse over the image or the annotation list items. I noticed that without the test plugin only
HOVER_ANNOTATION
actions are dispatched but with the test pluginUPDATE_VIEWPORT
action are dispatched in addition.The test plugin only renders the next component via
<TargetComponent {...targetProps} />
so I assume it does not disturb the annotation plugin. Also the test plugin does not trigger rerendings by itself.React.memo
didn't work either.Any ideas?