@suspensive/react-query-4
Version:
Suspensive interfaces for @tanstack/react-query@4
16 lines (13 loc) • 545 B
JavaScript
'use client';
import { _objectWithoutProperties } from "./_virtual/_@oxc-project_runtime@0.130.0/helpers/objectWithoutProperties.mjs";
import { useMutation } from "@tanstack/react-query";
import { Fragment, jsx } from "react/jsx-runtime";
//#region src/Mutation.tsx
const _excluded = ["children"];
function Mutation(_ref) {
let { children } = _ref;
return /* @__PURE__ */ jsx(Fragment, { children: children(useMutation(_objectWithoutProperties(_ref, _excluded))) });
}
//#endregion
export { Mutation };
//# sourceMappingURL=Mutation.mjs.map