@xstate/react 5.0.3 → 5.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,7 +50,7 @@ function stopRootWithRehydration(actorRef) {
50
50
  persistedSnapshots.push([ref, ref.getSnapshot()]);
51
51
  // muting observers allow us to avoid `useSelector` from being notified about the stopped snapshot
52
52
  // React reconnects its subscribers (from the useSyncExternalStore) on its own
53
- // and userland subscibers should basically always do the same anyway
53
+ // and userland subscribers should basically always do the same anyway
54
54
  // as each subscription should have its own cleanup logic and that should be called each such reconnect
55
55
  ref.observers = new Set();
56
56
  });
@@ -50,7 +50,7 @@ function stopRootWithRehydration(actorRef) {
50
50
  persistedSnapshots.push([ref, ref.getSnapshot()]);
51
51
  // muting observers allow us to avoid `useSelector` from being notified about the stopped snapshot
52
52
  // React reconnects its subscribers (from the useSyncExternalStore) on its own
53
- // and userland subscibers should basically always do the same anyway
53
+ // and userland subscribers should basically always do the same anyway
54
54
  // as each subscription should have its own cleanup logic and that should be called each such reconnect
55
55
  ref.observers = new Set();
56
56
  });
@@ -24,7 +24,7 @@ function stopRootWithRehydration(actorRef) {
24
24
  persistedSnapshots.push([ref, ref.getSnapshot()]);
25
25
  // muting observers allow us to avoid `useSelector` from being notified about the stopped snapshot
26
26
  // React reconnects its subscribers (from the useSyncExternalStore) on its own
27
- // and userland subscibers should basically always do the same anyway
27
+ // and userland subscribers should basically always do the same anyway
28
28
  // as each subscription should have its own cleanup logic and that should be called each such reconnect
29
29
  ref.observers = new Set();
30
30
  });
@@ -24,7 +24,7 @@ function stopRootWithRehydration(actorRef) {
24
24
  persistedSnapshots.push([ref, ref.getSnapshot()]);
25
25
  // muting observers allow us to avoid `useSelector` from being notified about the stopped snapshot
26
26
  // React reconnects its subscribers (from the useSyncExternalStore) on its own
27
- // and userland subscibers should basically always do the same anyway
27
+ // and userland subscribers should basically always do the same anyway
28
28
  // as each subscription should have its own cleanup logic and that should be called each such reconnect
29
29
  ref.observers = new Set();
30
30
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xstate/react",
3
- "version": "5.0.3",
3
+ "version": "5.0.5",
4
4
  "description": "XState tools for React",
5
5
  "keywords": [
6
6
  "state",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "peerDependencies": {
56
56
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
57
- "xstate": "^5.19.2"
57
+ "xstate": "^5.19.4"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "xstate": {
@@ -74,7 +74,7 @@
74
74
  "react-dom": "^19.0.0",
75
75
  "rxjs": "^7.8.1",
76
76
  "@xstate-repo/jest-utils": "^0.0.0",
77
- "xstate": "^5.19.2"
77
+ "xstate": "^5.19.4"
78
78
  },
79
79
  "scripts": {}
80
80
  }