Search code examples
reactjsreactjs-flux

Multiple stores with Alt (Flux)


The example on the main Alt page shows how to connect a single store to a React component using @connectToStores.

I wonder if we can still use @connectToStores to connect 2 stores to a React component. I suppose the getStores method will be like this:

static getStores() {
  return [TodoStore, TodoStore2];
}

but I don't know how the getPropsFromStores should be.


Solution

  • This question is answered here

    https://github.com/goatslacker/alt/issues/420