Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing machine #50

Closed
UberMouse opened this issue Jan 5, 2024 · 5 comments
Closed

Routing machine #50

UberMouse opened this issue Jan 5, 2024 · 5 comments

Comments

@UberMouse
Copy link
Collaborator

Helper utility to remove boilerplate for machines of simple event -> state -> machine configurations as is common with routing machines. Something like

export const AppRouter = buildRoutingMachine([...routingEvents], {
  GO_TO_FOO: FooMachine,
  GO_TO_BAR: BarMachine
});

Which is analogous to

export const AppRouter = createMachine(
  on: {
    GO_TO_FOO: "foo",
    GO_TO_BAR: "bar",
  },
  initial: "waitingForRoute",
  states: {
   waitingForRoute: {},
   foo: {
      invoke: { src: FooMachine }
   },
   bar: {
     invoke: { src: BarMachine }
   }
  }
);
UberMouse added a commit that referenced this issue Jan 9, 2024
Utility function to reduce boilerplate for machines that solely consist of event -> state -> invoke machine states

Closes #50
UberMouse added a commit that referenced this issue Jan 9, 2024
Utility function to reduce boilerplate for machines that solely consist of event -> state -> invoke machine states

Closes #50
UberMouse added a commit that referenced this issue Jan 9, 2024
Utility function to reduce boilerplate for machines that solely consist of event -> state -> invoke machine states

Closes #50
UberMouse added a commit that referenced this issue Jan 9, 2024
Utility function to reduce boilerplate for machines that solely consist of event -> state -> invoke machine states

Closes #50
github-actions bot pushed a commit that referenced this issue Jan 9, 2024
# [4.4.0-beta.2](v4.4.0-beta.1...v4.4.0-beta.2) (2024-01-09)

### feat

* **builders:** buildRoutingMachine ([4a522e7](4a522e7)), closes [#50](#50)
Copy link

github-actions bot commented Jan 9, 2024

🎉 This issue has been resolved in version 4.4.0-beta.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this issue Jan 9, 2024
# [4.4.0](v4.3.0...v4.4.0) (2024-01-09)

### feat

* **builders:** buildRoutingMachine ([4a522e7](4a522e7)), closes [#50](#50)
* **builders:** viewToMachine ([f02be21](f02be21)), closes [#51](#51)
* **core:** xstate v5 support ([4c7a57a](4c7a57a)), closes [#58](#58)
Copy link

github-actions bot commented Jan 9, 2024

🎉 This issue has been resolved in version 4.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this issue Jan 9, 2024
# [5.0.0](v4.3.0...v5.0.0) (2024-01-09)

### feat

* **builders:** buildRoutingMachine ([4a522e7](4a522e7)), closes [#50](#50)
* **builders:** viewToMachine ([f02be21](f02be21)), closes [#51](#51)
* **core:** xstate v5 support ([c143495](c143495)), closes [#58](#58)

### Breaking changes

* **core:** v1 style builders (buildView etc) have been removed, along with a handful of testing utilities and a behavioural change with children and final states. They will no longer be automatically from views and instead must be manually stopped using `stopChild`
Copy link

github-actions bot commented Jan 9, 2024

🎉 This issue has been resolved in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

UberMouse pushed a commit that referenced this issue Jan 10, 2024
# [4.4.0-beta.2](v4.4.0-beta.1...v4.4.0-beta.2) (2024-01-09)

### feat

* **builders:** buildRoutingMachine ([4a522e7](4a522e7)), closes [#50](#50)
github-actions bot pushed a commit that referenced this issue Jan 15, 2024
# [4.4.0-beta.1](v4.3.0...v4.4.0-beta.1) (2024-01-15)

### chore

* **release:** customize branches ([0618f0c](0618f0c))

### docs

* add viewToMachine/buildRoutingMachine into README ([ba8c10d](ba8c10d))

### feat

* **builders:** buildRoutingMachine ([f3ac844](f3ac844)), closes [#50](#50)
* **builders:** viewToMachine ([0e86b5c](0e86b5c)), closes [#51](#51)
github-actions bot pushed a commit that referenced this issue Jan 15, 2024
# [4.4.0](v4.3.0...v4.4.0) (2024-01-15)

### chore

* **release:** customize branches ([0618f0c](0618f0c))

### docs

* add viewToMachine/buildRoutingMachine into README ([ba8c10d](ba8c10d))

### feat

* **builders:** buildRoutingMachine ([f3ac844](f3ac844)), closes [#50](#50)
* **builders:** viewToMachine ([0e86b5c](0e86b5c)), closes [#51](#51)
github-actions bot pushed a commit that referenced this issue Jan 15, 2024
# [4.4.0](v4.3.0...v4.4.0) (2024-01-15)

### chore

* **release:** customize branches ([0618f0c](0618f0c))

### docs

* add viewToMachine/buildRoutingMachine into README ([ba8c10d](ba8c10d))

### feat

* **builders:** buildRoutingMachine ([f3ac844](f3ac844)), closes [#50](#50)
* **builders:** viewToMachine ([0e86b5c](0e86b5c)), closes [#51](#51)
* fix versioning? ([402546f](402546f))
github-actions bot pushed a commit that referenced this issue Jan 15, 2024
# [4.4.0](v4.3.0...v4.4.0) (2024-01-15)

### chore

* **release:** customize branches ([0618f0c](0618f0c))

### docs

* add viewToMachine/buildRoutingMachine into README ([ba8c10d](ba8c10d))

### feat

* **builders:** buildRoutingMachine ([f3ac844](f3ac844)), closes [#50](#50)
* **builders:** viewToMachine ([0e86b5c](0e86b5c)), closes [#51](#51)
* fix versioning? ([6f705e7](6f705e7))
github-actions bot pushed a commit that referenced this issue Jan 15, 2024
# [4.5.0](v4.4.0...v4.5.0) (2024-01-15)

### docs

* add viewToMachine/buildRoutingMachine into README ([ba8c10d](ba8c10d))

### feat

* **builders:** buildRoutingMachine ([f3ac844](f3ac844)), closes [#50](#50)
* **builders:** viewToMachine ([0e86b5c](0e86b5c)), closes [#51](#51)
* fix versioning..? ([bb713ac](bb713ac))
Copy link

🎉 This issue has been resolved in version 4.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this issue Jan 15, 2024
# [5.1.0-next.2](v5.1.0-next.1...v5.1.0-next.2) (2024-01-15)

### chore

* **release:** customize branches ([0618f0c](0618f0c))

### docs

* add viewToMachine/buildRoutingMachine into README ([ba8c10d](ba8c10d))

### feat

* **builders:** buildRoutingMachine ([f3ac844](f3ac844)), closes [#50](#50)
* **builders:** viewToMachine ([0e86b5c](0e86b5c)), closes [#51](#51)
* fix versioning..? ([bb713ac](bb713ac))
Copy link

🎉 This issue has been resolved in version 5.1.0-next.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

No branches or pull requests

1 participant