rrf/change action fires AFTER custom onChange handler. So the outdated data from the store is being passed to it.
Steps to Reproduce
For example, I have a <Control.Checkbox/> component in my app.
<Checkbox
model="application.sms_notification"
label="SMS notification"
onChange={this.handleCalculatorChange} / *custom handler which collects data
from application store and sends API request with it immediately */
/>
What happens when the checkbox is checked/unchecked?
Expected Behavior
First rrf/change fires and updates the store, than the custom handler is executed.
Actual Behavior
rrf/change action fires AFTER handleCalculatorChange. So the outdated data is being passed!
The Problem
rrf/change
action fires AFTER custom onChange handler. So the outdated data from the store is being passed to it.Steps to Reproduce
For example, I have a
<Control.Checkbox/>
component in my app.What happens when the checkbox is checked/unchecked?
Expected Behavior
First
rrf/change
fires and updates the store, than the custom handler is executed.Actual Behavior
rrf/change
action fires AFTERhandleCalculatorChange
. So the outdated data is being passed!Reproducible Code Example
https://codesandbox.io/s/nr8o8rxmkp