const pushGame = (game: Game) => { if (!game) { return; } if (isInternal) { isInternal = false; // we need to turn that into an https URL presto this.ctx.store.dispatch( actions.evolveTab({ window: "root", tab: this.tab, url: game.url, resource: `games/${gameId}`, replace: true, }) ); } this.push(gameToTabData(game)); };
action: payload => actions.modalResponse(payload),
(sniffedLang, preferenceLang) => { const lang = preferenceLang || sniffedLang || fallbackLang; schedule.dispatch(actions.languageChanged({ lang })); }
each(Object.keys(this.reactors), key => { if (!actions.hasOwnProperty(key)) { throw new Error(`trying to react to unknown action type ${key}`); } });