我使用react native
和redux
,這是我的動作:操作可能沒有未定義的「類型」屬性
import EMPLOYEE_UPDATE from './types';
export const employeeUpdate = ({ prop, value }) => {
return (
{
type: EMPLOYEE_UPDATE,
paylaod: { prop, value }
}
);
};
,但我得到這個錯誤:
Actions may not have an undefined "type" property. Have you misspelled a constant?
編輯: 類型.js文件是:
export const LOGIN_USER_FAILED = 'loing_user_failed';
export const SHOW_SPINNER = 'show_spinner';
export const EMPLOYEE_UPDATE = 'employee_update';
你可以編輯你的問題'類型'文件? –