I think this function should accept a store that is the result of getStatStores or a callback to it. Also, your jsdoc param names are incorrect