Devessier / temporal-electronic-signature

Electronic signature demonstration built with Temporal and XState
GNU General Public License v3.0
97 stars 16 forks source link

Put XState service in context #5

Closed Devessier closed 2 years ago

Devessier commented 2 years ago

We should not useuseMachine to provide an invoked state machine in a context. useMachine spawns a machine in a component and kills it when the component unmounts.

Instead we need to follow the following pattern: