Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32999573
D8107.1768351619.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D8107.1768351619.diff
View Options
diff --git a/lib/actions/client-db-store-actions.js b/lib/actions/client-db-store-actions.js
--- a/lib/actions/client-db-store-actions.js
+++ b/lib/actions/client-db-store-actions.js
@@ -2,4 +2,6 @@
const setClientDBStoreActionType = 'SET_CLIENT_DB_STORE';
-export { setClientDBStoreActionType };
+const setDataLoadedActionType = 'SET_DATA_LOADED';
+
+export { setClientDBStoreActionType, setDataLoadedActionType };
diff --git a/lib/reducers/data-loaded-reducer.js b/lib/reducers/data-loaded-reducer.js
--- a/lib/reducers/data-loaded-reducer.js
+++ b/lib/reducers/data-loaded-reducer.js
@@ -1,5 +1,6 @@
// @flow
+import { setDataLoadedActionType } from '../actions/client-db-store-actions.js';
import { siweAuthActionTypes } from '../actions/siwe-actions.js';
import {
logOutActionTypes,
@@ -14,7 +15,9 @@
state: boolean,
action: BaseAction,
): boolean {
- if (
+ if (action.type === setDataLoadedActionType) {
+ return action.payload.dataLoaded;
+ } else if (
action.type === logInActionTypes.success ||
action.type === siweAuthActionTypes.success ||
action.type === registerActionTypes.success
diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js
--- a/lib/types/redux-types.js
+++ b/lib/types/redux-types.js
@@ -1136,6 +1136,12 @@
+error: true,
+payload: Error,
+loadingInfo: LoadingInfo,
+ }
+ | {
+ +type: 'SET_DATA_LOADED',
+ +payload: {
+ +dataLoaded: boolean,
+ },
};
export type ActionPayload = ?(Object | Array<*> | $ReadOnlyArray<*> | string);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 14, 12:46 AM (26 m, 21 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5929577
Default Alt Text
D8107.1768351619.diff (1 KB)
Attached To
Mode
D8107: [lib] Introduce new SET_DATA_LOADED action
Attached
Detach File
Event Timeline
Log In to Comment