This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
react-rest-request/target/client_hook.js

9 lines
300 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useClient = void 0;
const request_context_1 = require("./request_context");
function useClient() {
const { client } = request_context_1.useRequestContext();
return [client];
}
exports.useClient = useClient;