Add warning

This commit is contained in:
Nathan Bierema 2022-01-11 23:29:12 -05:00
parent 8c48a73c28
commit 032623abb7

View File

@ -904,6 +904,11 @@ export function unliftStore<
}
const $$observable = getSymbolObservable();
if (!($$observable in liftedStore)) {
console.warn(
'Symbol.observable as defined by Redux and Redux DevTools do not match. This could cause your app to behave differently if the DevTools are not loaded. Consider polyfilling Symbol.observable before Redux is imported or avoid polyfilling Symbol.observable altogether.'
);
}
return {
liftedStore,