redux#combineReducers JavaScript Examples
The following examples show how to use
redux#combineReducers.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.js From ashteki with GNU Affero General Public License v3.0 | 6 votes |
rootReducer = combineReducers({ navigation, auth, cards, games, news, toastr: toastrReducer, api, admin, user, account, lobby, stats })
Example #2
Source File: mainReducer.js From forge-configurator-inventor with MIT License | 6 votes |
mainReducer = combineReducers({ projectList: projectListReducer, notifications: notificationReducer, parameters: parametersReducer, updateParameters: updateParametersReducer, uiFlags: uiFlagsReducer, profile: profileReducer, bom: bomReducer })
Example #3
Source File: RideRequest.spec.js From carpal-fe with MIT License | 6 votes |
//mock redux
function renderWithRedux(
ui,
{
store = createStore(
combineReducers({
user: reducer
}),
applyMiddleware(thunk, logger)
)
} = {}
) {
return {
...render(<Provider store={store}>{<Router>{ui}</Router>}</Provider>),
store
};
}
Example #4
Source File: index.js From shopping-cart-fe with MIT License | 6 votes |
rootReducer = combineReducers({ form: formReducer, user: userReducer, store: storeReducer, cart: cartReducer, search: searchReducer, savedCart: savedCartReducer, dashboard: dashboardReducer, order: orderReducer, product: productReducer, orders: getOrdersReducer, onboard: onboardReducer, logo: logoReducer, color: colorReducer })
Example #5
Source File: store.js From create-sas-app with Apache License 2.0 | 6 votes |
reducer = combineReducers({ home: homeReducer, login: loginReducer, adapter: adapterReducer, header: headerReducer, projectList: projectListReducer, newProject: newProjectReducer, customAlert: customAlertReducer, project: projectReducer, })
Example #6
Source File: index.js From Alfredo-Mobile with MIT License | 6 votes |
reducers = combineReducers({
nav: require('./NavigationRedux').reducer,
products: require('./ProductsRedux').reducer,
category: require('./CategoryRedux').reducer,
auth: require('./AuthRedux').reducer,
session: require('./SessionRedux').reducer,
invoice: require('./InvoiceRedux').reducer,
order: require('./OrderRedux').reducer,
confirm: require('./ConfirmPaymentRedux').reducer,
})
Example #7
Source File: reducers.js From e-Pola with MIT License | 6 votes |
export function makeRootReducer(asyncReducers) {
return combineReducers({
// Add sync reducers here
firebase,
firestore,
notifications,
location: locationReducer,
...asyncReducers
})
}
Example #8
Source File: index.js From airdnd-frontend with MIT License | 6 votes |
rootReducer = combineReducers({ user, signup, login, search, searchForm, wishlists, trips, message, home, modal, map, reservation, socket, mouseEvents, })
Example #9
Source File: index.js From Designer-Client with GNU General Public License v3.0 | 6 votes |
rootReducer = combineReducers({ users, alerts, apis, metas, operations, resources, applications })
Example #10
Source File: index.js From react-native-todolist with MIT License | 6 votes |
rootReducer = combineReducers({ actionType: actionTypeReducer, plannerList: fetchPlannerReducer, appLoginPayload: appLoginReducer, addPlannerPayload: addPlannerReducer, firebasePlannerList: fetchFirebasePlannerReducer, googlePlannerList: fetchGoogleCalendarReducer, microsoftPlannerList: fetchMicrosoftPlannerReducer, fetchStudentsListPayload: fetchStudentsListReducer, loadFBAnnoucements: fetchFBAnnouncementReducer, fetchAnnouncementPayload: fetchAnnouncementReducer, grantDrivePermissionState: grantGoogleDrivePermissionReducer, uploadDriveAttachment: uploadFilesGoogleDriveReducer, plannerCallback: createPlannerReducer, createFirebasePlannerPayload: createFirebasePlannerReducer, createGooglePlannerPayload: createGooglePlannerReducer, createMicrosoftPlannerPayload: createMicrosoftPlannerReducer, })
Example #11
Source File: index.js From Spoke with MIT License | 6 votes |
constructor(history, initialState = {}) {
const reducer = combineReducers({
...reducers,
apollo: ApolloClientSingleton.reducer(),
routing: routerReducer
});
this.data = createStore(
reducer,
initialState,
compose(
applyMiddleware(
routerMiddleware(history),
ApolloClientSingleton.middleware(),
ReduxThunk.withExtraArgument(ApolloClientSingleton)
),
typeof window === "object" &&
typeof window.devToolsExtension !== "undefined"
? window.devToolsExtension()
: f => f
)
);
}
Example #12
Source File: index.js From Artion-Client with GNU General Public License v3.0 | 6 votes |
rootReducer = combineReducers({ Auth, ConnectWallet, HeaderOptions, Modal, Filter, Collections, Tokens, Price, })
Example #13
Source File: configureStore.js From HexactaLabs-NetCore_React-Initial with Apache License 2.0 | 6 votes |
export default function configureStore(history, initialState) {
const reducers = {
form: formReducer,
router: connectRouter(history),
auth,
home,
provider,
store
};
const middleware = [thunk, routerMiddleware(history)];
const enhancers = [];
// eslint-disable-next-line no-undef
const isDevelopment = process.env.NODE_ENV === "development";
if (
isDevelopment &&
typeof window !== "undefined" &&
window.devToolsExtension
) {
enhancers.push(window.devToolsExtension());
}
const rootReducer = combineReducers(reducers);
return createStore(
rootReducer,
initialState,
compose(
applyMiddleware(...middleware),
...enhancers
)
);
}
Example #14
Source File: configureStore.js From flame-coach-web with MIT License | 6 votes |
makeStore = () => {
const isServer = typeof window === 'undefined';
if (isServer) {
return createOwnStore(rootReducer);
}
const rootReducers = combineReducers({
notification: notificationReducer
});
return createOwnStore(rootReducers);
}
Example #15
Source File: index.js From college-management-react with GNU General Public License v3.0 | 6 votes |
rootReducer = combineReducers({
// INSERT HERE YOUR CUSTOM REDUCERS
LoginReducer,
ProfileReducer,
UserEditReducer,
UserListReducer,
// START COMBINE REDUCERS
HomeReducer,
CourseEditReducer,
CourseListReducer,
ExamEditReducer,
ExamListReducer,
StudentEditReducer,
StudentListReducer,
TeacherEditReducer,
TeacherListReducer,
// END COMBINE REDUCERS
})
Example #16
Source File: reducers.js From QiskitFlow with Apache License 2.0 | 6 votes |
/**
* Merges the main reducer with the router state and dynamically injected reducers
*/
export default function createReducer(injectedReducers = {}) {
const rootReducer = combineReducers({
global: globalReducer,
language: languageProviderReducer,
router: connectRouter(history),
...injectedReducers,
});
return rootReducer;
}
Example #17
Source File: rootReducer.js From NoteMaster with GNU General Public License v3.0 | 6 votes |
// Root reducer
export default function createRootReducer(history: HashHistory) {
return combineReducers<{}, *>({
router: connectRouter(history),
window: windowReducer,
monaco: monacoReducer,
preferences: preferencesReducer,
contextEvaluation: contextEvaluationReducer
});
}
Example #18
Source File: index.js From dexwebapp with Apache License 2.0 | 6 votes |
rootReducer = (history) =>
combineReducers({
router: connectRouter(history),
exchange: ExchangeInfoReducer,
tabs: TabsReducer,
tradePanel: TradePanelReducer,
layoutManager: LayoutManagerReducer,
liquidityMining: LiquidityMiningReducer,
currentMarket: CurrentMarketReducer,
orderBook: OrderBookReducer,
tradeHistory: TradeHistoryReducer,
ticker: TickerReducer,
modalManager: ModalManagerReducer,
balances: MyAccountPageReducer,
myOrders: MyOrdersReducer,
myOrderPage: MyOrderPageReducer,
metaMask: MetaMaskReducer,
walletConnect: WalletConnectReducer,
walletLink: WalletLinkReducer,
mewConnect: MewConnectReducer,
authereum: AuthereumReducer,
dexAccount: DexAccountReducer,
nonce: NonceReducer,
gasPrice: GasPriceReducer,
legalPrice: LegalPriceReducer,
commissionReward: CommissionRewardReducer,
userPreferences: UserPreferenceManagerReducer,
notifyCenter: NotifyCenterReducer,
})
Example #19
Source File: configureStore.js From HexactaLabs-NetCore_React-Level2 with Apache License 2.0 | 6 votes |
export default function configureStore(history, initialState) {
const reducers = {
form: formReducer,
router: connectRouter(history),
auth,
home,
provider,
productType,
store
};
const middleware = [thunk, routerMiddleware(history)];
const enhancers = [];
// eslint-disable-next-line no-undef
const isDevelopment = process.env.NODE_ENV === "development";
if (
isDevelopment &&
typeof window !== "undefined" &&
window.devToolsExtension
) {
enhancers.push(window.devToolsExtension());
}
const rootReducer = combineReducers(reducers);
return createStore(
rootReducer,
initialState,
compose(
applyMiddleware(...middleware),
...enhancers
)
);
}
Example #20
Source File: index.js From archeage-tools with The Unlicense | 6 votes |
rootReducer = (history) => combineReducers({
dailies,
display,
calendar,
folio,
gameData,
itemPrice,
mounts,
myGame,
notification,
proficiencies,
router: connectRouter(history),
session,
crops,
taxes,
tradepacks,
users,
})
Example #21
Source File: index.js From web with GNU General Public License v3.0 | 6 votes |
reducers = combineReducers({ activities, app, daily, nativeData, navigation, restrictions, riskTest, statistics, triage, user })
Example #22
Source File: rootReducer.js From FEC with MIT License | 6 votes |
rootReducer = combineReducers({ changePage: viewMainPageReducer, selectedSku: setCurrentSkuReducer, skus: setSkuReducer, product: fetchProductReducer, expand: expandGalleryReducer, relatedProducts: fetchRelatedReducer, currentStyles: setStylesReducer, outfits: fetchOutfitReducer, currentStyle: setCurrentStyleReducer, reviews: fetchReviewsReducer, reviewMeta: fetchReviewMetaReducer, reviewHelpfulLog: fetchReviewHelpfulLogReducer, currentGalleryIndex: setGalleryIndexReducer, quantity: setQuantityReducer, outfitsCarouselIndex: setOutfitsIndexReducer, relatedCarouselIndex: setRelatedIndexReducer })
Example #23
Source File: rootReducer.js From vch-mri with MIT License | 6 votes |
rootReducer = combineReducers({ authentication, booking, rules, results, weights, spell, conjunctions, synonyms, specialtyExam, })
Example #24
Source File: index.js From scalable-form-platform with MIT License | 6 votes |
constructor(...args) {
super(...args);
this.state = {};
this.namespace = util.getRandomString(8);
this.store = createStore(
combineReducers(xformBuilderReducer),
compose(applyMiddleware(thunkMiddleware))
);
}
Example #25
Source File: store.js From reddish with MIT License | 6 votes |
reducer = combineReducers({ user: userReducer, notification: notificationReducer, posts: postReducer, postComments: postCommentsReducer, subs: subReducer, userPage: userPageReducer, subPage: subPageReducer, search: searchReducer, darkMode: themeReducer, })
Example #26
Source File: index.js From spotify-react with MIT License | 6 votes |
rootReducer = combineReducers({ userPlaylists, featuredPlaylists, categoryPlaylists, playlist, listUserPlaylists, newReleases, album, artistAlbums, artistSingles, relatedArtists, followedArtists, artist, topTracks, savedTracks, artistTopTracks, categories, player, progressBar, charts, searchResults, })
Example #27
Source File: index.js From auro-wallet-browser-extension with Apache License 2.0 | 6 votes |
appRootReducer = combineReducers({ entryRouteReducer: entryRouteReducer, appReducer: appReducer, tabRouteConfig, network, accountInfo, cache: cacheReducer, staking, currencyConfig })
Example #28
Source File: index.js From Learning-Redux with MIT License | 6 votes |
pagination = combineReducers({
starredByUser: paginate({
mapActionToKey: (action) => action.login,
types: [
ActionTypes.STARRED_REQUEST,
ActionTypes.STARRED_SUCCESS,
ActionTypes.STARRED_FAILURE,
],
}),
stargazersByRepo: paginate({
mapActionToKey: (action) => action.fullName,
types: [
ActionTypes.STARGAZERS_REQUEST,
ActionTypes.STARGAZERS_SUCCESS,
ActionTypes.STARGAZERS_FAILURE,
],
}),
})
Example #29
Source File: index.js From win11React with Creative Commons Zero v1.0 Universal | 6 votes |
allReducers = combineReducers({ wallpaper: wallReducer, taskbar: taskReducer, desktop: deskReducer, startmenu: menuReducer, sidepane: paneReducer, widpane: widReducer, apps: appReducer, menus: menusReducer, globals: globalReducer, setting: settReducer, files: fileReducer })