Skip to content

@xstate/svelte@5.0.1

Choose a tag to compare

@github-actions github-actions released this 19 Oct 19:49
8f25b68

Patch Changes

  • #5811 6a7fa79 Thanks @ybai08! - The snapshot store returned by useActor(…) now reads the actor's current snapshot whenever it gains its first subscriber. Before, if the actor changed while nothing was subscribed to the store (for example, while the only component reading $snapshot was unmounted), the store kept showing the old snapshot until the next change. useSelector(…) already worked this way.