We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
useRequest 默认情况下设置 staleTime 后,在 staleTime 到期前,调用 refresh 是不会重新发起请求的,但在某些场景下(例如强制刷新),这可能并不符合预期,期望 refresh 能支持忽略 staleTime 强制重新发起请求,可能的 API 为 refresh(force: boolean): void 或者 refresh(options?: { skipStaleTime:? boolean }): void
refresh(force: boolean): void
refresh(options?: { skipStaleTime:? boolean }): void