import{cH as s,aT as r}from"./app-BgLa5dit.js";function o(i,u){const c=i,n=u,t=s(i&&(l=>c(l).key));return r.useEffect(()=>{t&&t.shouldInitialFetch&&u&&n()},[t==null?void 0:t.shouldInitialFetch,u]),r.useEffect(()=>{!t||!t.nextCursor||t.isFetching||!u||n(t.nextCursor)},[t==null?void 0:t.nextCursor,t==null?void 0:t.isFetching,u]),t}export{o as u};
//# sourceMappingURL=ekVIVtrT.chunk.js.map
