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

10 lines
300 B
JavaScript
Raw Permalink Normal View History

2021-07-05 07:41:11 +03:00
"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();
2021-06-15 00:11:58 +03:00
return [client];
}
2021-07-05 07:41:11 +03:00
exports.useClient = useClient;