xstate
xstate copied to clipboard
[core] Add failing test for general `model.assign(...)` actions
This PR demonstrates the failure for transitions to accept general model.assign(...) functions with the following characteristics:
- Are defined outside of the machine definition
- Can accept any event
Potentially addressed by https://github.com/statelyai/xstate/pull/2690
⚠️ No Changeset found
Latest commit: 1eb61393ffe5b79915ef98eb90672596a6ac849f
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Should this be tackled in v5 instead, where we have better typings for actions?
Since we phased out createModel API this is no longer needed and types are being reworked on anyway.
