我在ReduxPersist的 GitHub 页面上找不到任何内容
我有一段代码正在尝试理解,由于该autoRehydrate代码已被删除,我想知道应该如何使用redux-persist.
import { AsyncStorage } from 'react-native';
import { applyMiddleware, createStore } from 'redux';
import { autoRehydrate, persistStore } from 'redux-persist'
import thunk from 'redux-thunk';
import reducers from '../reducers';
const middleWare = [thunk];
const createStoreWithMiddleware = applyMiddleware(...middleWare)(createStore);
export default configureStore = (onComplete) => {
const store = autoRehydrate()(createStoreWithMiddleware)(reducers);
persistStore(store, { storage: AsyncStorage }, onComplete);
return store;
};
Run Code Online (Sandbox Code Playgroud)
我找到了一些教程,但它只是说这个autoRehydrate必须存在,但没有解释它实际上是做什么的。
我搜索了ARM Cortex-A53处理器,发现它使用了静态的有序管道,在该指令中依次执行,执行和提交。我不明白为什么这样的现代处理器会使用有序执行,因为无序执行的速度更快,因为它可以更好地处理控制和数据危害。
android ×1
architecture ×1
arm ×1
hardware ×1
java ×1
javascript ×1
pipeline ×1
react-native ×1
reactjs ×1
redux ×1
xml ×1