trexitycode / wirestate

MIT License
1 stars 0 forks source link

Invalid state name when defined at root of child machine (sorry for bad wording) #7

Closed matb33 closed 5 years ago

matb33 commented 5 years ago
@machine Shipments
  updated potential shipments -> Redisplay
  Display*
  Redisplay

@machine App
  Shipments
    @use "Shipments"

results in:

                    "on": {
                      "updated potential shipments": "#Redisplay 1"
                    },
                    "states": {
...
                      "Redisplay": {
                        "id": "Shipments Redisplay 1",

Notice how it's targeting #Redisplay 1 instead of #Shipments Redisplay 1