React complains about the same React context object being used by multiple "renderers" (react-dom instances in this case) when Zedux shares context objects across windows in multi-window setups. Instead, create a different context object for each instance of React that Zedux runs in. Use the React instance's createContext function to key a WeakMap mapped to the record of cached context objects.
Description
React complains about the same React context object being used by multiple "renderers" (react-dom instances in this case) when Zedux shares context objects across windows in multi-window setups. Instead, create a different context object for each instance of React that Zedux runs in. Use the React instance's
createContext
function to key a WeakMap mapped to the record of cached context objects.