Skip to content

build(deps): bump @xstate/react from 1.3.4 to 3.1.1#515

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

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

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 31, 2023

Bumps @xstate/react from 1.3.4 to 3.1.1.

Release notes

Sourced from @​xstate/react's releases.

@​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>
    );
    }

@​xstate/react@​3.0.2

Patch Changes

  • #3752 4190c3fd6 Thanks @​davidkpiano! - Computing the initial state is now consistent with useMachine and useActor, avoiding stale initial state problems with nested machines

... (truncated)

Commits
  • 99164fd Version Packages (#3800)
  • 10d0ba7 Fixed an issue with not clearing registered interpreters when their machines ...
  • 51d2546 Work around over-eager warnings coming from uSES (#3799)
  • 567b832 Add @xstate/solid to packages list in readme (#3796)
  • 131b4ba Version Packages (#3774)
  • 8781586 [xstate/react] Add createActorContext to React docs (#3792)
  • 8c48805 Add @xstate/solid (#2932)
  • f12248b [xstate/react] Add createActorContext() (#3778)
  • c7cd5aa Revert "Run pull_request workflow on its latest commit (#3490)" (#3789)
  • b68f0e8 Fixed an issue with EmittedFrom sometimes not being able to infer the snaps...
  • Additional commits viewable in compare view
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.1.
- [Release notes](https://github.com/statelyai/xstate/releases)
- [Commits](https://github.com/statelyai/xstate/compare/@xstate/react@1.3.4...@xstate/react@3.1.1)

---
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 3, 2023

Superseded by #518.

@dependabot dependabot bot closed this Feb 3, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/xstate/react-3.1.1 branch February 3, 2023 14:03
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