Spaces:
Paused
Paused
UX-agent / frontend /node_modules /@tanstack /react-query /build /legacy /QueryErrorResetBoundary.js
Download frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.js from AUXteam/UX-agent: direct link, hf CLI and curl.
- Browser
- Download file 884 Bytes
-
https://huggingface.co/spaces/AUXteam/UX-agent/resolve/main/frontend/node_modules/%40tanstack/react-query/build/legacy/QueryErrorResetBoundary.js
- Command line
-
hf download hf://spaces/AUXteam/UX-agent/frontend/node_modules/@tanstack/react-query/build/legacy/QueryErrorResetBoundary.js
-
curl -L -o QueryErrorResetBoundary.js https://huggingface.co/spaces/AUXteam/UX-agent/resolve/main/frontend/node_modules/%40tanstack/react-query/build/legacy/QueryErrorResetBoundary.js
884 Bytes
| "use client"; | |
| // src/QueryErrorResetBoundary.tsx | |
| import * as React from "react"; | |
| import { jsx } from "react/jsx-runtime"; | |
| function createValue() { | |
| let isReset = false; | |
| return { | |
| clearReset: () => { | |
| isReset = false; | |
| }, | |
| reset: () => { | |
| isReset = true; | |
| }, | |
| isReset: () => { | |
| return isReset; | |
| } | |
| }; | |
| } | |
| var QueryErrorResetBoundaryContext = React.createContext(createValue()); | |
| var useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext); | |
| var QueryErrorResetBoundary = ({ | |
| children | |
| }) => { | |
| const [value] = React.useState(() => createValue()); | |
| return /* @__PURE__ */ jsx(QueryErrorResetBoundaryContext.Provider, { value, children: typeof children === "function" ? children(value) : children }); | |
| }; | |
| export { | |
| QueryErrorResetBoundary, | |
| useQueryErrorResetBoundary | |
| }; | |
| //# sourceMappingURL=QueryErrorResetBoundary.js.map |