How can redux-persist be used in conjunction with dva?

redux-persist can be used with redux, so how can redux-persist be used with dva.

Sep.16,2021

app.js

import { persistStore, persistReducer } from 'redux-persist'
import storage from 'redux-persist/lib/storage'
import autoMergeLevel2 from 'redux-persist/es/stateReconciler/autoMergeLevel2';

export const dva = {
  config: {
    onReducer(reducer) {
      const persistConfig = {
        key: 'root',
        storage,
        stateReconciler: autoMergeLevel2
      }
      return persistReducer(persistConfig, reducer)
    },
    onError(err) {
      console.error(err);
    },
  },
};

window.onload = () => {
  persistStore(window.g_app._store)
}

well, I still encountered this problem when configuring react-native to integrate dva and redux-persist

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bdee42-397df.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bdee42-397df.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?