const queries = new Set();
const addQueryToRefetch = (query) => {
    queries.add(query);
    return () => queries.delete(query);
};
const refetchPoses = () => {
    for (const query of queries) {
        query.refetch();
    }
};
export const useRefetchPoses = () => {
    return {
        addQueryToRefetch,
        refetchPoses,
    };
};
