You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is perhaps best addressed via a note in the wiki, unless an in-code fix is much easier than expected. The gist is that if Mirador 3 in Mosaic mode is embedded in another React app that uses react-dnd in a different component, the two can produce the dreaded Cannot have two HTM5 backends at the same time error. This can happen even when toggling from Mirador 3 to the other component, due to the asynchronous tear-down behavior in React 16.
This comment succinctly captures the problem, the challenges react-dnd's architecture poses to an in-code fix, and the easiest workaround: facebook/react#11106 (comment)
The workaround is to set a state flag in one of the components so that it doesn't render until mounted.
The text was updated successfully, but these errors were encountered:
This is perhaps best addressed via a note in the wiki, unless an in-code fix is much easier than expected. The gist is that if Mirador 3 in Mosaic mode is embedded in another React app that uses
react-dnd
in a different component, the two can produce the dreadedCannot have two HTM5 backends at the same time
error. This can happen even when toggling from Mirador 3 to the other component, due to the asynchronous tear-down behavior in React 16.This comment succinctly captures the problem, the challenges
react-dnd
's architecture poses to an in-code fix, and the easiest workaround:facebook/react#11106 (comment)
The workaround is to set a state flag in one of the components so that it doesn't render until mounted.
The text was updated successfully, but these errors were encountered: