tahamajs/IE / Projects /front /node_modules /@tanstack /react-query /build /legacy /QueryErrorResetBoundary.js
| "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 |
Xet Storage Details
- Size:
- 884 Bytes
- Xet hash:
- e5d6cc1aa450f11e59041d5000cb0bc0c6cf4714c74a90b5f33ff5fff2adc979
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.