Skip to content

build(deps): bump @xstate/react from 1.6.3 to 6.1.0 in /examples/state-management - #369

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/examples/state-management/xstate/react-6.1.0
Open

build(deps): bump @xstate/react from 1.6.3 to 6.1.0 in /examples/state-management#369
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/examples/state-management/xstate/react-6.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 12, 2026

Copy link
Copy Markdown
Contributor

Bumps @xstate/react from 1.6.3 to 6.1.0.

Release notes

Sourced from @​xstate/react's releases.

@​xstate/react@​6.1.0

Minor Changes

  • #5470 3e03427 Thanks @​davidkpiano! - useActor and useSelector now throw when the actor reaches an error state, allowing errors to be caught by React error boundaries.

    import { createMachine } from 'xstate';
    import { useActor } from '@xstate/react';
    import { ErrorBoundary } from 'react-error-boundary';
    const machine = createMachine({
    initial: 'idle',
    states: {
    idle: {
    on: {
    fetch: 'loading'
    }
    },
    loading: {
    invoke: {
    src: fromPromise(async () => {
    throw new Error('Network error');
    }),
    onDone: 'success'
    // Without onError, the actor enters an error state
    }
    },
    success: {}
    }
    });
    function App() {
    return (
    <ErrorBoundary fallback={<p>Something went wrong</p>}>
    <ActorComponent />
    </ErrorBoundary>
    );
    }
    function ActorComponent() {
    // If the actor errors, the error will be thrown
    // and caught by the nearest error boundary
    const [snapshot, send] = useActor(machine);
    return <div>{snapshot.value}</div>;
    }

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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.6.3 to 6.1.0.
- [Release notes](https://github.com/statelyai/xstate/releases)
- [Commits](https://github.com/statelyai/xstate/compare/@xstate/react@1.6.3...@xstate/react@6.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Aug 12, 2026
@dependabot
dependabot Bot requested a review from ulises-jeremias as a code owner August 12, 2026 18:55
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Aug 12, 2026
@github-actions

Copy link
Copy Markdown
Messages
📖

📋 Missing Summary - Can you add a Summary? To do so, add a ## Description section to your PR description. This is a good place to explain the motivation for making this change.

📖 Thanks! We ❤️ removing more lines than added!
📖 Thanks! We ❤️ small PRs!

Generated by 🚫 dangerJS against ed249eb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants