Store not updating in IE11 (react redux)

2019-07-23 20:06发布

问题:

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'