我在我的RN-app中从服务器获取产品列表。中写下了这个案例: case FETCH_PRODUCTS_SUCCESS: ...state, ...state.appState,我不能理解action.products有效负载是否违反了“不可变的reducer”原则。我不确定我的response.data在任何地方都不能更新,除了我的reducer。因此,在这种情况下,它将违反“不可变</
我创建了一个新的react-native项目,并编写了一个redux demo.IOS模拟器,显示错误'Expected the reducer to be a function‘。我试图从预览答案中解决这个问题,但不起作用import React, {Component} from 'react';
import {AppRegistry, StyleSheet, Text, View} from '
使用ReactNative创建一个超级克隆,在创建应用程序的同时设置Redux时,Metro bundler返回了以下错误: Error: The slice reducer for key "navdon't want to set a value for this reducer, you can use null instead of undefined.
at node_modules\react-native这是App.js import Reac
我正在做我的第一个反应-本地应用,我似乎不能把我的行动与道具。在组件中,this.props.actions是空的,LoginActions也是mapDispatchToProps函数中的空对象。这使我相信在操作或连接绑定中它是一个问题。有人能看到我哪里出了问题吗?构成部分:import PropTypes from '