@suspensive/react-query-4
Version:
Suspensive interfaces for @tanstack/react-query@4
17 lines (14 loc) • 746 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/Mutation.tsx
const _excluded = ["children"];
function Mutation(_ref) {
let { children } = _ref;
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children((0, _tanstack_react_query.useMutation)(require_objectWithoutProperties._objectWithoutProperties(_ref, _excluded))) });
}
//#endregion
exports.Mutation = Mutation;
//# sourceMappingURL=Mutation.cjs.map