UNPKG

@suspensive/react-query-4

Version:

Suspensive interfaces for @tanstack/react-query@4

20 lines (17 loc) 696 B
'use client'; import { _objectWithoutProperties } from "./_virtual/_@oxc-project_runtime@0.130.0/helpers/objectWithoutProperties.mjs"; import { useIsFetching } from "@tanstack/react-query"; import { Fragment, jsx } from "react/jsx-runtime"; //#region src/IsFetching.tsx const _excluded = ["children"]; /** * Renders the current fetching count for queries that match the given filters. * @experimental This is an experimental feature. */ const IsFetching = (_ref) => { let { children } = _ref; return /* @__PURE__ */ jsx(Fragment, { children: children(useIsFetching(_objectWithoutProperties(_ref, _excluded))) }); }; //#endregion export { IsFetching }; //# sourceMappingURL=IsFetching.mjs.map