Releases: alovajs/alova
Releases · alovajs/alova
@alova/[email protected]
Patch Changes
- Updated dependencies [
ebb1e6e
]:- @alova/[email protected]
@alova/[email protected]
Patch Changes
- Updated dependencies [
ebb1e6e
]:- @alova/[email protected]
[email protected]
Minor Changes
const { send } = useRequest((a: number, b: string) => alova.Get('/'));
send(1, 'a'); // send type is `function send(a: number, b: string, ...args: any[])`
const { reload, refresh } = usePagination(alova.Get('/user/list'), {
// ...
});
const handleReload = async () => {
await reload(); // resolve at reloading success, reject at reloading fail.
};
const handleRefresh = async () => {
await refresh(); // resolve at refreshing success, reject at refreshing fail.
};
Patch Changes
const getter = alova.Get<{ code: number, data: any, msg: string }>('/');
type Result = Awaited<typeof getter>; // type `Result` is `{ code: number, data: any, msg: string }`
- Updated dependencies [
ea20f56
]:- @alova/[email protected]
@alova/[email protected]
Patch Changes
- Updated dependencies [
ea20f56
]:- @alova/[email protected]
@alova/[email protected]
@alova/[email protected]
Patch Changes
- Updated dependencies [
ea20f56
]:- @alova/[email protected]
@alova/[email protected]
Patch Changes
- Updated dependencies [
ea20f56
]:- @alova/[email protected]
@alova/[email protected]
Patch Changes
- Updated dependencies [
ea20f56
]:- @alova/[email protected]
@alova/[email protected]
Patch Changes
-
#563
ea20f56
Thanks @JOU-amjs! - loading value depends onimmdediate
event ifmiddleware
is set -
Updated dependencies [
ea20f56
]:- @alova/[email protected]
@alova/[email protected]
Patch Changes
- Updated dependencies [
ea20f56
]:- @alova/[email protected]