upgrade: state-machine package upgrade for Solid 2.0#916
Conversation
🦋 Changeset detectedLatest commit: 9adf2d2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Upgrades
@solid-primitives/state-machineto Solid 2.0 beta.13. The core implementation was redesigned to handle the new async signal batching model: transitions called from within state callbacks are now resolved synchronously via an internal while loop (no signal writes during memo execution), while external transitions viastate.to.*()are batched and requireflush()before reading updated state in imperative code.Summary by CodeRabbit
Breaking Changes
flush()after transitions to synchronously observe state changes in tests or imperative codeflush()before reading resulting stateDocumentation