mattpocock / xstate-codegen

A codegen tool for 100% TS type-safety in XState
MIT License
245 stars 12 forks source link

add useService to react template #10

Closed redappleorigin closed 4 years ago

redappleorigin commented 4 years ago

xstate's spawn is fine calling the xstate-compiled machine, useService was not.

mattpocock commented 4 years ago

Tested, and working. @redappleorigin could you add a changeset with yarn changeset in root?

mattpocock commented 4 years ago

Once that's in I'll merge. Thanks for this, great work 👍

redappleorigin commented 4 years ago

Yes sir, I just need to figure out how to do that first.

changeset-bot[bot] commented 4 years ago

🦋 Changeset is good to go

Latest commit: 716ad0bf92d1564723ab654640bcdbf5e2054e66

We got this.

This PR includes changesets to release 1 package | Name | Type | | -------------- | ----- | | xstate-codegen | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

redappleorigin commented 4 years ago

@mattpocock let me know if I did this correctly.

mattpocock commented 4 years ago

@redappleorigin Have released this in the latest 'next' version