import { select , call , CallEffect } from "redux-saga/effects" ; import getArenaReducerDictEntry from "./getArenaReducerDictEntry" ; function * _getSceneState ( key ) { let entry = yield getArenaReducerDictEntry ( key ) ; return yield select ( ( state ) => state [ entry . reducerKey ] ) ; } export default function getSceneState ( key ? ) { return call ( _getSceneState , key ? key : "_arenaScene" ) ; }