## Usage ```jsx const request = useRequest(server, { onBefore(params) {}, onAfter(params) {}, }) ``` ## API ### Options | Property | Description | Type | Default | | -------- | ------------------- | --------------------- | ------- | | onBefore | Hook before request | `(params: P) => void` | - | | onAfter | Hook after request | `(params: P) => void` | - |