You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reducer.js 368B

123456789101112131415
  1. import { ReducerRegistry } from '../../base/redux';
  2. import { UPDATE_NETWORK_REQUESTS } from './actionTypes';
  3. ReducerRegistry.register('features/net-interceptor', (state = {}, action) => {
  4. switch (action.type) {
  5. case UPDATE_NETWORK_REQUESTS:
  6. return {
  7. ...state,
  8. requests: action.requests
  9. };
  10. }
  11. return state;
  12. });