Skip to content

Commit 754b737

Browse files
committed
v6.1.0
1 parent d40c7a9 commit 754b737

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

CHANGELOG.md

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
## [6.1.0](https://github.com/axios-use/react/compare/v6.0.0...v6.1.0) (2022-07-05)
2+
3+
4+
### Features
5+
6+
* feat(useRequest): return all response. ([e9317ce](https://github.com/axios-use/react/commit/e9317ce246a0c286c6e548d2f153dbc2cd8411b6))
7+
```diff
8+
interface CreateRequest {
9+
// Promise function
10+
- ready: () => Promise<[Payload<TRequest>, AxiosRestResponse]>;
11+
+ ready: () => Promise<[Payload<TRequest>, AxiosResponse]>;
12+
// Axios Canceler. clear current request.
13+
cancel: Canceler;
14+
}
15+
```
16+
17+
```diff
18+
- const [{ data, error, isLoading, other }] = useResource(...)
19+
+ const [{ data, error, isLoading, response }] = useResource(...)
20+
```
21+
22+
No BREAKING CHANGES. Will keep `other` value, but deprecated.
23+
24+
25+
126
# [6.0.0](https://github.com/axios-use/react/compare/v5.1.0...v6.0.0) (2022-05-15)
227

328

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@axios-use/react",
3-
"version": "6.0.0",
3+
"version": "6.1.0",
44
"description": "A React hook plugin for Axios. Lightweight, cancelable and less change",
55
"contributors": [
66
"Matheus Schettino <[email protected]>",

0 commit comments

Comments
 (0)