import{r as m}from"./vendor-react-wBh_31cN.js";import{j as n}from"./vendor-redux-CJZrIb6x.js";import{u as f}from"./selectors-CMD4o3wq.js";import{M as G}from"./index-BKr2rJhV.js";import{c as h}from"./vendor-router-D1GqFWiT.js";const y=(e,r,t)=>{const{computationTime:u}=h(),{currentData:s}=f({fsId:t}),{currentData:c,isFetching:a,refetch:i}=G({pId:e,fsId:t,fgId:r}),o=n(),p=m.useCallback(()=>{o.featureGroupStatistics.clear(),i(),s&&t&&!a&&o.featureGroupStatistics.fetch({projectId:+e,featureStoreId:t,featureGroupId:+r,computationTime:u})},[o.featureGroupStatistics,i,s,t,a,e,r,u]);return{data:c,isLoading:a||!c,fetchData:p}};export{y as u};
