Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3500423
D8353.id28572.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8353.id28572.diff
View Options
diff --git a/native/redux/persist.js b/native/redux/persist.js
--- a/native/redux/persist.js
+++ b/native/redux/persist.js
@@ -4,7 +4,7 @@
import invariant from 'invariant';
import { Platform } from 'react-native';
import Orientation from 'react-native-orientation-locker';
-import { createMigrate, createTransform } from 'redux-persist';
+import { createTransform } from 'redux-persist';
import type { Transform } from 'redux-persist/es/types.js';
import {
@@ -14,6 +14,7 @@
convertReportsToReplaceReportOps,
} from 'lib/ops/report-store-ops.js';
import { highestLocalIDSelector } from 'lib/selectors/local-id-selectors.js';
+import { createAsyncMigrate } from 'lib/shared/create-async-migrate.js';
import { inconsistencyResponsesToReports } from 'lib/shared/report-utils.js';
import {
getContainingThreadID,
@@ -672,7 +673,7 @@
debug: __DEV__,
version: 42,
transforms: [messageStoreMessagesBlocklistTransform, reportStoreTransform],
- migrate: (createMigrate(migrations, { debug: __DEV__ }): any),
+ migrate: (createAsyncMigrate(migrations, { debug: __DEV__ }): any),
timeout: ((__DEV__ ? 0 : undefined): number | void),
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 1:34 AM (5 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2684496
Default Alt Text
D8353.id28572.diff (1 KB)
Attached To
Mode
D8353: [native] Add support for async migrations
Attached
Detach File
Event Timeline
Log In to Comment