Dva: How to integration with redux-persist V5?

Created on 26 Dec 2017  ·  5Comments  ·  Source: dvajs/dva


Because:"redux-persist V5" remove autoRehydrate, I found that dva is based on Redux-persist V4,
How to use v5 in this dva;

Code to reproduce the issue: (请提供可复现的代码或者步骤)

Expected behavior: (预期的正常效果)

can use redux-persists v5

#### Actual behavior: (实际效果)

Versions of packages used: (哪个库的哪个版本出现的问题)

dva:v2.1
redux-persists:v5.4

Most helpful comment

I have a demo about redux-persist V5:
https://github.com/lyingd/antd-pro-standalone/commit/99364215646ad05096a0128efb7c2bb2d561f117
I hope this will help you.
@662 @kunhour

All 5 comments

同求如何使用V5

I have a demo about redux-persist V5:
https://github.com/lyingd/antd-pro-standalone/commit/99364215646ad05096a0128efb7c2bb2d561f117
I hope this will help you.
@662 @kunhour

@lyingd Thanks!

Hi, I am new in redux persist. I am facing error of Redux-persist failed to create sync storage, falling back to memory storage. Please help me, thank you.

Was this page helpful?
0 / 5 - 0 ratings