Store not updating in IE11 (react redux)

霸气de小男生 提交于 2019-12-24 06:29:28

问题


in IE 11 I can't update my store. First time it add data, but next time, when I try update it not working.

I try use polyfill

import Immutable from 'immutable'
const objectAssign = require('object-assign');
const initialUserState =
{

}
;
const BackupReducer = function(state = initialUserState, action) {
   //console.log('actiondata in reducer:' + action.data + action.type);

  switch(action.type) {

  case 'GET_BACK_LIST':
         return objectAssign({}, state, { backups: action.data });
 break;

but it not helps: in console I see:


回答1:


The problem was in axios. it caching data, so I just add param in header

Pragma: 'no-cache'


来源:https://stackoverflow.com/questions/48865705/store-not-updating-in-ie11-react-redux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!