This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// main.js | |
import { Subject } from 'rxjs'; | |
import { createStore, compose, applyMiddleware } from 'redux'; | |
import pingPongReducer from './pingPongReducer'; | |
import pingPongEpic from './pingPongEpic'; | |
const buildEpicSubscriber = () => { | |
let subscription = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Match from 'react-router/Match'; | |
import { connect } from 'react-redux'; | |
import * as ActionTypes from '../constants/actionTypes'; | |
import buildActionCreators from '../helpers/buildActionCreators'; | |
const EMPTY_PROPS = {}; | |
const createMountableComponent = (Cmp, routeId) => connect( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const changeScene = async ( | |
{ store, commands$ }: CommandContext, | |
nextSceneId: number | |
) => { | |
logger.debug(`Changing scene - ${nextSceneId} requested`); | |
const activeScene = getActiveScene(store.getState()); | |
const activeSceneId = getActiveSceneId(store.getState()); | |
if (activeSceneId === nextSceneId) { |
OlderNewer