Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redux-persist 在开发环境和android真机有效,在iOS真机无效,页面白屏 #8952

Closed
daddyauden opened this issue Mar 22, 2021 · 4 comments
Labels
F-react Framework - React question Further information is requested T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@daddyauden
Copy link

相关平台

微信小程序

小程序基础库: 2.15.0
使用框架: React

复现步骤

正常使用redux系列即可,需要安装以下几个插件
"@tarojs/components": "3.0.27",
"@tarojs/react": "3.0.27",
"@tarojs/runtime": "3.0.27",
"@tarojs/taro": "3.0.27",
"react": "^16.10.0",
"react-dom": "^16.10.0",
"react-redux": "^7.2.0",
"redux": "^4.0.0",
"redux-persist": "^6.0.0",
"redux-saga": "^1.1.3",

期望结果

首页正常打开

实际结果

首页白屏

环境信息

Taro CLI 3.0.27 environment info:
    System:
      OS: macOS 11.1
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 14.15.4 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 6.14.10 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.0.27 => 3.0.27 
      @tarojs/mini-runner: 3.0.27 => 3.0.27 
      @tarojs/react: 3.0.27 => 3.0.27 
      @tarojs/runtime: 3.0.27 => 3.0.27 
      @tarojs/taro: 3.0.27 => 3.0.27 
      @tarojs/webpack-runner: 3.0.27 => 3.0.27 
      babel-preset-taro: 3.0.27 => 3.0.27 
      react: ^16.10.0 => 16.14.0 
      taro-ui: 3.0.0-alpha.3 => 3.0.0-alpha.3 

补充信息

不使用redux-persist 小程序可以正常使用

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Mar 22, 2021
@Chen-jj
Copy link
Contributor

Chen-jj commented Mar 25, 2021

提供一下 demo

@Chen-jj Chen-jj added the question Further information is requested label Mar 25, 2021
@QingyunYang
Copy link

@jackyang1984 遇到了同样的问题,请问您解决了吗?

@QingyunYang
Copy link

推荐不要使用 PersistGate

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 20, 2021

Duplicate of #6548

@Chen-jj Chen-jj marked this as a duplicate of #6548 Jul 20, 2021
@Chen-jj Chen-jj closed this as completed Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React question Further information is requested T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

3 participants