選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

reducer.js 472B

123456789101112131415161718192021
  1. import { ReducerRegistry } from '../../base/redux';
  2. import { _SET_IMMERSIVE_LISTENER } from './actionTypes';
  3. const INITIAL_STATE = {
  4. listener: undefined
  5. };
  6. ReducerRegistry.register(
  7. 'features/full-screen',
  8. (state = INITIAL_STATE, action) => {
  9. switch (action.type) {
  10. case _SET_IMMERSIVE_LISTENER:
  11. return {
  12. ...state,
  13. listener: action.listener
  14. };
  15. }
  16. return state;
  17. });