gajus / canonical-reducer-composition

Spec for Canonical Reducer Composition design pattern.
187 stars 3 forks source link

The right approach to split domains #5

Closed asaf closed 9 years ago

asaf commented 9 years ago

Hey,

According to the spec, it seems like a reducer such below should work,

let reducers = {
  users: {
    foo: {
      CONSTRUCT: () => {return Immutable.List()}
    }
  },
  bar: {
    CONSTRUCT: () => {return Immutable.List()}
  }
}

Apparently, it fails on Reducer definition object action handler names must be valid action names on the 'foo' part,

What's the right syntax for having nested domains ?

Thanks.

asaf commented 9 years ago

Wrong repo

gajus commented 9 years ago

This refers to https://github.com/gajus/canonical-reducer-composition/issues/5.