statelyai / xstate

Actor-based state management & orchestration for complex app logic.
https://stately.ai/docs
MIT License
27.21k stars 1.26k forks source link

[core] Do not clear undefined timer IDs #5002

Closed davidkpiano closed 3 months ago

davidkpiano commented 3 months ago

Fix an issue where clearTimeout(undefined) was sometimes being called, which can cause errors for some clock implementations. See https://github.com/statelyai/xstate/issues/5001 for details.

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: e6fbcb9d04a9b853162bef2cdd0fb93a9d4effe0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------ | ----- | | xstate | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR