redux-devtools/packages/redux-devtools-instrument/src/getSymbolObservable.ts
Nathan Bierema 912e2d132f
Fix Symbol.observable polyfill mismatch (#1003)
* Remove spreading store in instrument

* Add subscribe method

* Ignore ESLint error

* Resolve Symbol.observable at store creation time

* Add warning
2022-01-12 04:56:04 +00:00

4 lines
130 B
TypeScript

export default function getSymbolObservable() {
return (typeof Symbol === 'function' && Symbol.observable) || '@@observable';
}