import { getContext , call , CallEffect } from "redux-saga/effects" ; function * _getArenaReducerDictEntry ( key ) { let dict = yield getContext ( "arenaReducerDict" ) ; let entry = dict [ key ] ; if ( entry == null ) throw new Error ( `can not get entry of key: "${ key }"` ) ; return entry ; } export default function getArenaReducerDictEntry ( key ) { return call ( _getArenaReducerDictEntry , key ) ; }