Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

reducer.js 348B

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