carloslfu / xstate-router

XState Router. Add routes to your XState machine.
MIT License
112 stars 16 forks source link

How to handle intermediate states that shouldn't have a path? #9

Closed jaqmol closed 4 years ago

jaqmol commented 4 years ago

In case I want to mix states that should have routes together with states that shouldn't (due to their transitive nature) in the same machine, how do I express this? Just leaving out the meta: { path: '/whatever } will drive the router into a runtime-error, setting path to "null" doesn't change the outcome. Thanks in advance.

carloslfu commented 4 years ago

I think it's a bug, thanks for reporting @jaqmol. I'll fix it.

carloslfu commented 4 years ago

Fixed in v0.4.1: https://www.npmjs.com/package/xstate-router/v/0.4.1