Skip to content

@xstate/react@4.0.3

Compare
Choose a tag to compare
@github-actions github-actions released this 23 Jan 17:22
· 88 commits to main since this release
cc5c67e

Patch Changes

  • #4695 52900a084 Thanks @davidkpiano! - Options in createActorContext are now properly merged with provider options. Previously, provider options replaced the actor options.

    const { inspect } = createBrowserInspector();
    
    const SomeContext = createActorContext(someMachine, { inspect });
    
    // ...
    // Options are now merged:
    // { inspect: inspect, input: 10 }
    <SomeContext.Provider options={{ input: 10 }}>
      {/* ... */}
    </SomeContext.Provider>;