27f346d8f1
It was not meant to be used for these cases -- wasting resources creating and going through the cache for each simple direct access.
13 lines
990 B
JavaScript
13 lines
990 B
JavaScript
const selectState = (state) => state.sync || {};
|
|
|
|
export const selectHasSyncedWallet = (state) => selectState(state).hasSyncedWallet;
|
|
export const selectSyncHash = (state) => selectState(state).syncHash;
|
|
export const selectSyncData = (state) => selectState(state).syncData;
|
|
export const selectSetSyncErrorMessage = (state) => selectState(state).setSyncErrorMessage;
|
|
export const selectGetSyncErrorMessage = (state) => selectState(state).getSyncErrorMessage;
|
|
export const selectGetSyncIsPending = (state) => selectState(state).getSyncIsPending;
|
|
export const selectSetSyncIsPending = (state) => selectState(state).setSyncIsPending;
|
|
export const selectHashChanged = (state) => selectState(state).hashChanged;
|
|
export const selectSyncApplyIsPending = (state) => selectState(state).syncApplyIsPending;
|
|
export const selectSyncApplyErrorMessage = (state) => selectState(state).syncApplyErrorMessage;
|
|
export const selectSyncApplyPasswordError = (state) => selectState(state).syncApplyPasswordError;
|