yoshuawuyts / barracks

:mountain_railway: action dispatcher for unidirectional data flows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

consume `flux-standard-action`s out of the box?

yoshuawuyts opened this issue · comments

commented

Instead of having to wrap .emit(), barracks could detect if the action name is an object and proceed from there:

old

// consume `flux standard actions`
// obj -> null
function fsaWrap (action) {
  assert.ok(isFsa(action), action + ' is not a flux standard action')
  d(action.type, action)
}

new

 d(action)
commented

Closed in #26