JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

React使用redux报错:A non-serializable value was detected in an action...

发布时间 2023-05-29 17:24:54作者: 猕猴桃姑娘

原因:数据无法序列化,报错了

方法:在store.ts中,关闭序列化检测

middleware: (getDefaultMiddleware) => getDefaultMiddleware({
    serializableCheck: false
 })

  

 

有问题欢迎交流,谢谢!

 

    本栏目推荐文章
  • Center-based 3D Object Detection and Tracking
  • 2024-01-13 记录react-dnd拖拽组件的用法
  • 2024-01-13 react 监听上一页返回
  • Chrome 浏览器插件 V3 版本 Manifest.json 文件中 Action 的类型(Types)、方法(Methods)和事件(Events)的属性和参数解析
  • git bash报错fatal: detected dubious ownership in repository at的解决方法
  • 2024-01-13 Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. ==》引用了未使用的方法导致
  • Unity3d_Rewired官方文档翻译:要点(三):Rewired Editor->Players、Actions、InputBehaviours、Categories、CustomControllers
  • Unity3d_Rewired官方文档翻译:概念(一):InputManager、Players、Actions
  • 002*:React状态、属性、传值
  • Early lameness detection in dairy cattle based on wearable gait analysis using semi-supervised LSTM-Autoencoder
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们