From 138f4f37b645008b8ac61dee6a96ccaa32cb29a2 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 28 Mar 2024 12:20:08 -0400 Subject: [PATCH] Add polyfill for Symbol.asyncIterator (#1642) * Add polyfill for Symbol.asyncIterator * Create tame-dancers-fail.md * Format --- .changeset/tame-dancers-fail.md | 5 +++++ packages/redux-devtools-remote/src/devTools.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/tame-dancers-fail.md diff --git a/.changeset/tame-dancers-fail.md b/.changeset/tame-dancers-fail.md new file mode 100644 index 00000000..b413d474 --- /dev/null +++ b/.changeset/tame-dancers-fail.md @@ -0,0 +1,5 @@ +--- +'@redux-devtools/remote': patch +--- + +Fix Hermes support by adding polyfill for Symbol.asyncIterator diff --git a/packages/redux-devtools-remote/src/devTools.ts b/packages/redux-devtools-remote/src/devTools.ts index b32ffbe5..dc7e4a9a 100644 --- a/packages/redux-devtools-remote/src/devTools.ts +++ b/packages/redux-devtools-remote/src/devTools.ts @@ -1,3 +1,6 @@ +(Symbol as any).asyncIterator = + Symbol.asyncIterator || Symbol.for('Symbol.asyncIterator'); + import { stringify, parse } from 'jsan'; import socketClusterClient, { AGClientSocket } from 'socketcluster-client'; import configureStore from './configureStore';