目前,我正在使用redux感知的 Login组件发送操作,如下所示,该组件运行良好:@connect(store() => store);this.props.dispatch(LoginActions.fetchingUser(formData));fetchingUser动作创建者调用一个API,如下所示:
import API from '..co
我在自己的本机应用程序中实现了redux,在单击按钮时,我在mapDispatchToProps中发送了方法,并直接调用API in action方法,并使用API响应更新了还原器中的存储,并从mapStateToProps.中的redux存储中检索数据。我们可以从任何类中的redux存储中检索数据,但是我们可以直接从类中更新或删除redux中的存储值,而无需在mapDispatc