Download wp-calypso/client/landing/login/store.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 828 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/login/store.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/landing/login/store.js
-
curl -L -o store.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/login/store.js
828 Bytes
| import { createStore, applyMiddleware, compose } from 'redux'; | |
| import { thunk as thunkMiddleware } from 'redux-thunk'; | |
| import analyticsMiddleware from 'calypso/state/analytics/middleware'; | |
| import currentUser from 'calypso/state/current-user/reducer'; | |
| import wpcomApiMiddleware from 'calypso/state/data-layer/wpcom-api-middleware'; | |
| import { combineReducers, addReducerEnhancer } from 'calypso/state/utils'; | |
| // Legacy reducers | |
| // The reducers in this list are not modularized, and are always loaded on boot. | |
| const rootReducer = combineReducers( { | |
| currentUser, | |
| } ); | |
| const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; | |
| export default () => | |
| createStore( | |
| rootReducer, | |
| composeEnhancers( | |
| addReducerEnhancer, | |
| applyMiddleware( thunkMiddleware, wpcomApiMiddleware, analyticsMiddleware ) | |
| ) | |
| ); | |