hunk.code_window:   }
   > {
     const transitions = toArrayStrict(configLike).map((transitionLike) => {
       if (
         typeof transitionLike === 'undefined' ||
         typeof transitionLike === 'string' ||
         isStateMachine(transitionLike)
       ) {
         return { target: transitionLike, event };
       }
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep keep
hunk.after_edit:       typeof transitionLike === 'string'
  
hunk.file_path: packages/core/src/utils.ts
hunk.type: replace
file: <script lang="ts">
    export let persistedState: AnyState | undefined = undefined;
  
    import { useMachine } from '../src';
    import UseMachineNonPersistentSubcriptionChild from './UseMachineNonPersistentSubcriptionChild.svelte';
    import type { AnyState } from 'xstate';
    import { assign, createMachine } from 'xstate';
  
    let visible = true;
  
    const machine = createMachine({
      context: {
        count: 0
      },
      on: {
        INC: {
          actions: assign({
            count: (ctx: { count: number }) => ++ctx.count
          })
        }
      }
    });
  
    const { state, send } = useMachine(machine);
  </script>
  
  <div>
    <button type="button" on:click={() => (visible = !visible)}>Toggle</button>
    {#if visible}
      <!-- inlined version of this doesn't unsubscribe from the store when the content gets hidden, so we need to keep this in a separate component  -->
      <UseMachineNonPersistentSubcriptionChild {send} {state} />
    {/if}
  </div>
  