reflux / refluxjs

A simple library for uni-directional dataflow application architecture with React extensions inspired by Flux
BSD 3-Clause "New" or "Revised" License
5.36k stars 330 forks source link

How can I change the store state without setting the component state? #521

Closed lyd600lty closed 7 years ago

lyd600lty commented 7 years ago

I call an action in the component componentWillUnmount function, but when set the store state, the component is unmount, so the error happened like following.

image

BryanGrezeszak commented 7 years ago

Most likely you'll need to look at this section of the docs.

That's probably what's causing it.