From 032623abb7457c9aca7aedb4424b9c29918a7bfe Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Tue, 11 Jan 2022 23:29:12 -0500 Subject: [PATCH] Add warning --- packages/redux-devtools-instrument/src/instrument.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/redux-devtools-instrument/src/instrument.ts b/packages/redux-devtools-instrument/src/instrument.ts index dcdc8c77..457d9ab3 100644 --- a/packages/redux-devtools-instrument/src/instrument.ts +++ b/packages/redux-devtools-instrument/src/instrument.ts @@ -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,