@suspensive/react-query-4
Version:
Suspensive interfaces for @tanstack/react-query@4
21 lines (18 loc) • 897 B
JavaScript
'use client';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_objectWithoutProperties = require('./_virtual/_@oxc-project_runtime@0.130.0/helpers/objectWithoutProperties.cjs');
let _tanstack_react_query = require("@tanstack/react-query");
let react_jsx_runtime = require("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__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children((0, _tanstack_react_query.useIsFetching)(require_objectWithoutProperties._objectWithoutProperties(_ref, _excluded))) });
};
//#endregion
exports.IsFetching = IsFetching;
//# sourceMappingURL=IsFetching.cjs.map