Skip to content

6.1.0

Choose a tag to compare

@wangcch wangcch released this 05 Jul 02:39
· 50 commits to main since this release

Features

  • feat(useRequest): return all response. (e9317ce)

    interface CreateRequest {
      // Promise function
    - ready: () => Promise<[Payload<TRequest>, AxiosRestResponse]>;
    + ready: () => Promise<[Payload<TRequest>, AxiosResponse]>;
      // Axios Canceler. clear current request.
      cancel: Canceler;
    }
    - const [{ data, error, isLoading, other }] = useResource(...)
    + const [{ data, error, isLoading, response }] = useResource(...)

No BREAKING CHANGES. Will keep other value, but deprecated.