Page MenuHomePhabricator

D10845.id36188.diff
No OneTemporary

D10845.id36188.diff

diff --git a/native/redux/state-types.js b/native/redux/state-types.js
--- a/native/redux/state-types.js
+++ b/native/redux/state-types.js
@@ -27,6 +27,24 @@
import type { ConnectivityInfo } from '../types/connectivity.js';
import type { LocalSettings } from '../types/local-settings-types.js';
+const nonUserSpecificFieldsNative = [
+ 'storeLoaded',
+ 'loadingStatuses',
+ 'dataLoaded',
+ 'customServer',
+ 'notifPermissionAlertInfo',
+ 'lifecycleState',
+ 'nextLocalID',
+ 'dimensions',
+ 'connectivity',
+ 'deviceCameraInfo',
+ 'deviceOrientation',
+ 'frozen',
+ 'userPolicies',
+ 'keyserverStore',
+ '_persist',
+];
+
export type AppState = {
+navInfo: NavInfo,
+currentUserInfo: ?CurrentUserInfo,
@@ -62,3 +80,5 @@
+localSettings: LocalSettings,
+integrityStore: IntegrityStore,
};
+
+export { nonUserSpecificFieldsNative };
diff --git a/web/redux/redux-setup.js b/web/redux/redux-setup.js
--- a/web/redux/redux-setup.js
+++ b/web/redux/redux-setup.js
@@ -63,6 +63,22 @@
+calendar: ?string,
};
+const nonUserSpecificFieldsWeb = [
+ 'loadingStatuses',
+ 'windowDimensions',
+ 'notifPermissionAlertInfo',
+ 'lifecycleState',
+ 'nextLocalID',
+ 'dataLoaded',
+ 'windowActive',
+ 'userPolicies',
+ 'pushApiPublicKey',
+ 'keyserverStore',
+ 'initialStateLoaded',
+ '_persist',
+ 'customServer',
+];
+
export type AppState = {
+navInfo: NavInfo,
+currentUserInfo: ?CurrentUserInfo,
@@ -112,7 +128,7 @@
| { +type: 'SET_CRYPTO_STORE', payload: CryptoStore }
| { +type: 'SET_INITIAL_REDUX_STATE', payload: InitialReduxState };
-export function reducer(oldState: AppState | void, action: Action): AppState {
+function reducer(oldState: AppState | void, action: Action): AppState {
invariant(oldState, 'should be set');
let state = oldState;
let storeOperations: StoreOperations = {
@@ -395,3 +411,5 @@
return state;
}
+
+export { nonUserSpecificFieldsWeb, reducer };

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 3:57 AM (21 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2573803
Default Alt Text
D10845.id36188.diff (1 KB)

Event Timeline