yoshuawuyts / barracks

:mountain_railway: action dispatcher for unidirectional data flows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tips for namespace name

kwoon opened this issue · comments

When i try to give namespace name something like "pages:home" i catch error. I guess problem in this fragment. Perhaps it would be correct, when action would be the last part of actionName?

commented

yeah, try and make namespaces single words, as when calling send they'll be prefixed already. e.g.

  • namespace: 'user`
  • action: logout
  • send('user:logout')

does that make sense? Cheers!

Maybe you are right. Lets make all more simply! :)