const makeSelectApp = () => createSelector( selectApp(), appState => appState.toJS() )
//export store onSnapshot(store, snapshot => { let nextStore = toJS(snapshot); ElectronStore.store = exportStore(nextStore); });
const getMax = arr => { if (arr.size === 0) { return -1; } return Math.max.apply(Math, arr.toJS().map(o => o._temp__id)); }
state .updateIn( ['modifiedData', 'contentType', 'schema', 'attributes', dynamicZoneTarget, 'components'], list => { return fromJS(makeUnique([...list.toJS(), ...newComponents])); } ) .updateIn(['modifiedData', 'components'], old => { const componentsSchema = newComponents.reduce((acc, current) => { return addComponentsToState(state, current, acc); }, old); return componentsSchema; })
const makeSelectForm = () => createSelector( selectHomePageDomain(), substate => substate.get('form').toJS(), )
/** * Other specific selectors */ /** * Default selector used by NotificationProvider */ const selectNotificationProvider = () => createSelector( selectNotificationProviderDomain(), (notificationProviderState) => notificationProviderState.toJS() )
/** * Other specific selectors */ /** * Default selector used by LocaleToggle */ const makeSelectLocaleToggle = () => createSelector( selectLocaleToggle(), substate => { return substate ? substate.toJS() : substate; } )
/** * Other specific selectors */ /** * Default selector used by Main */ const makeSelectMain = () => createSelector( selectMainDomain(), substate => { return substate.toJS(); } )
/** * Default selector used by HomePage */ const selectHomePage = () => createSelector( selectHomePageDomain(), (substate) => substate.toJS(), )
/** * Other specific selectors */ /** * Default selector used by NotificationProvider */ const selectNotificationProvider = () => createSelector( selectNotificationProviderDomain(), (notificationProviderState) => notificationProviderState.toJS() )
/** * Default selector used by HomePage */ const selectHomePage = () => createSelector( selectHomePageDomain(), (substate) => substate.toJS(), )
const getMax = arr => { if (arr.size === 0) { return -1; } return Math.max.apply(Math, arr.toJS().map(o => o._temp__id)); }
const makeSelectApp = () => createSelector( selectApp(), appState => appState.toJS() )
/** * Other specific selectors */ /** * Default selector used by LocaleToggle */ const makeSelectLocaleToggle = () => createSelector( selectLocaleToggle(), substate => { return substate ? substate.toJS() : substate; } )
/** * Other specific selectors */ /** * Default selector used by Main */ const makeSelectMain = () => createSelector( selectMainDomain(), substate => { return substate.toJS(); } )