handleDeleteClick = propertyName => () => {
this.props.clearFilterOption(propertyName, this.props.filtersPropertyName);
this.props.onFilterClear();
};
handleDeleteClick
function is a button handler. My first redux action clearFilterOption
modifies the store. The second action onFilterClear
is the asynchronous action that maps filter params from redux-thunk's getState
and calls api. My question is - does redux thunk wait for earlier dispatched action that modifies the store? In other words - do I have a certainty that the second action will fire with the most recent store version?
For now it works as expected. The second action fires with cleared filter option. But I don't know if it's because I'm using redux-thunk, or because clearFilterOption
for now, is a low cost function.