Skip to content

Commit 8237982

Browse files
amondnetthreepointone
authored andcommitted
chore: add changeset for React Native fix
1 parent 5651239 commit 8237982

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"partysocket": patch
3+
---
4+
5+
Fix React Native/Expo `dispatchEvent` TypeError
6+
7+
Added React Native environment detection to use Node-style event cloning. React Native/Expo environments have both `process` and `document` polyfilled but not `process.versions.node`, which caused browser-style event cloning to be selected incorrectly. Browser-style cloning produces events that fail `instanceof Event` checks in `event-target-polyfill`.
8+
9+
Fixes #257

0 commit comments

Comments
 (0)