简体   繁体   English

在IE11中存储不更新(react redux)

[英]Store not updating in IE11 (react redux)

in IE 11 I can't update my store. 在IE 11中,我无法更新我的商店。 First time it add data, but next time, when I try update it not working. 第一次添加数据,但下次,当我尝试更新它不起作用。

I try use polyfill 我尝试使用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: 但它没有帮助:在控制台我看到:

在此输入图像描述

The problem was in axios. 问题出在axios上。 it caching data, so I just add param in header 它缓存数据,所以我只在标题中添加param

Pragma: 'no-cache'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM