From 557347b0680d6852edea686940bb39e46b242d1c Mon Sep 17 00:00:00 2001 From: haoziqaq <357229046@qq.com> Date: Wed, 25 Sep 2024 02:35:02 +0800 Subject: [PATCH] docs: update readme --- README.md | 8 ++++---- README.zh-CN.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2ea6595..c5e1fc5 100644 --- a/README.md +++ b/README.md @@ -295,8 +295,8 @@ const axle = createAxle(/** @see https://axios-http.com **/) const useAxle = createUseAxle({ axle, - // Optional value: Default immediate of the useAxle - immediate: true, + // Optional value: Default immediate of the useAxle, defaults true + immediate: false, // Optional value: Default onTransform of the useAxle onTransform: (response) => response, }) @@ -308,8 +308,8 @@ const [users, getUsers, { loading, error, uploadProgress, downloadProgress, abor method: 'get', // Request url can be a getter function url: '/user', - // Whether to send the request immediately, defaults false - immediate: true, + // Whether to send the request immediately, defaults true + immediate: false, // Whether the value needs to be reset before requesting, defaults false resetValue: true, // Whether to clone when resetting value, defaults false diff --git a/README.zh-CN.md b/README.zh-CN.md index 8bf9786..d0ea345 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -295,8 +295,8 @@ const axle = createAxle(/** @see https://axios-http.com **/) const useAxle = createUseAxle({ axle, - // 可选项: useAxle 的默认 immediate - immediate: true, + // 可选项: useAxle 的默认 immediate, 默认值: true + immediate: false, // 可选项: useAxle 的默认 onTransform onTransform: (response) => response, }) @@ -308,8 +308,8 @@ const [users, getUsers, { loading, error, uploadProgress, downloadProgress, abor method: 'get', // 请求地址, 可以是 getter 函数 url: '/user', - // 是否立即发送请求, 默认值: false - immediate: true, + // 是否立即发送请求, 默认值: true + immediate: false, // 请求前是否需要重置 value, 默认值: false resetValue: true, // 重置 value 是否对 value 进行拷贝