在IE11中存储未更新(响应redux) [英] Store not updating in IE11 (react redux)

查看:122
本文介绍了在IE11中存储未更新(响应redux)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IE 11中,我无法更新我的商店. 第一次添加数据,但是下次,当我尝试更新时,它不起作用.

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

我尝试使用polyfill

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:

推荐答案

问题出在axios.它缓存数据,所以我只在标头中添加了参数

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

Pragma: 'no-cache'

这篇关于在IE11中存储未更新(响应redux)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆