Skip to content

build(deps): bump @xstate/react from 1.3.4 to 3.1.2#518

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/xstate/react-3.1.2
Closed

build(deps): bump @xstate/react from 1.3.4 to 3.1.2#518
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/xstate/react-3.1.2

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 3, 2023

Bumps @xstate/react from 1.3.4 to 3.1.2.

Release notes

Sourced from @​xstate/react's releases.

@​xstate/react@​3.1.2

Patch Changes

  • #3804 b53856d28 Thanks @​farskid! - Interpreter options can now be specified in the second argument of createActorContext(machine, options).

@​xstate/react@​3.1.1

Patch Changes

  • #3799 51d254692 Thanks @​Andarist! - Fixed an issue that caused the internally used useSyncExternalStore to warn about the computed snapshot not being cached when a not-started machine servive was passed to useActor.

@​xstate/react@​3.1.0

Minor Changes

  • #3778 f12248b23 Thanks @​davidkpiano! - The createActorContext(...) helper has been introduced to make global actors easier to use with React. It outputs a React Context object with the following properties:

    • .Provider - The React Context provider
    • .useActor(...) - A hook that can be used to get the current state and send events to the actor
    • .useSelector(...) - A hook that can be used to select some derived state from the actor's state
    • .useActorRef() - A hook that can be used to get a reference to the actor that can be passed to other components

    Usage:

    import { createActorContext } from '@xstate/react';
    import { someMachine } from './someMachine';
    // Create a React Context object that will interpret the machine
    const SomeContext = createActorContext(someMachine);
    function SomeComponent() {
    // Get the current state and send function
    const [state, send] = SomeContext.useActor();
    // Or select some derived state
    const someValue = SomeContext.useSelector((state) => state.context.someValue);
    // Or get a reference to the actor
    const actorRef = SomeContext.useActorRef();
    return (/* ... */);
    }
    function App() {
    return (
    <SomeContext.Provider>
    <SomeComponent />
    </SomeContext.Provider>
    );
    }

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by xstate-release-bot, a new releaser for @​xstate/react since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@xstate/react](https://github.com/statelyai/xstate) from 1.3.4 to 3.1.2.
- [Release notes](https://github.com/statelyai/xstate/releases)
- [Commits](https://github.com/statelyai/xstate/compare/@xstate/react@1.3.4...@xstate/react@3.1.2)

---
updated-dependencies:
- dependency-name: "@xstate/react"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 13, 2023

Superseded by #521.

@dependabot dependabot bot closed this Feb 13, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/xstate/react-3.1.2 branch February 13, 2023 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants