Closed dperetti closed 7 years ago
Sounds like an issue with create-react-app fluxflow
here is the example demonstrating how to set up Flux+Flow: https://github.com/facebook/flux/tree/master/examples/flux-flow
If something is wrong with that example let me know
It should work without any additional configuration, that's the point. Moreover, that example apparently suggests to ignore everything in node_modules, which I believe is not recommended anymore. Looks more like a hack than a proper implementation.
In https://github.com/facebook/flux/blob/master/examples/flux-flow/flow/flux-utils.js#L35, it is
declare class ReduceStore<TPayload, TState> extends Store<TPayload> {
reduce(state: TState, action: TPayload): TState;
But in node_modules/flux/lib/FluxReduceStore.js.flow, it is
class FluxReduceStore<TState> extends FluxStore {
reduce(state: TState, action: Object): TState {
Why are they different?
With:
How to reproduce:
Output: