This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@xstate/store@2.2.0
Minor Changes
#5027758a78711d Thanks @davidkpiano! - You can now inspect XState stores using the .inspect(inspector) method:
import { someStore } from './someStore';
someStore.inspect((inspEv) => {
console.log(inspEv);
// logs "@xstate.event" events and "@xstate.snapshot" events
// whenever an event is sent to the store
});
// The "@xstate.actor" event is immediately logged
xstate@5.17.4
Patch Changes
#5039d6df8fb470 Thanks @Andarist! - Fixed an inference issue that prevented emit used directly in setup (or bare createMachine) to benefit from types.emitted types.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@xstate/store@2.2.0
Minor Changes
#5027
758a78711d
Thanks @davidkpiano! - You can now inspect XState stores using the.inspect(inspector)
method:xstate@5.17.4
Patch Changes
d6df8fb470
Thanks @Andarist! - Fixed an inference issue that preventedemit
used directly insetup
(or barecreateMachine
) to benefit fromtypes.emitted
types.