mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-19 20:59:09 +08:00
fix: Turn off SWR automatic revalidation when window is focused (#3129)
Co-authored-by: mazhanwen <mazhanwen@tal.com>
This commit is contained in:
parent
28b1c48235
commit
5a23d570b5
@ -32,6 +32,7 @@ const SwrInitor = ({
|
|||||||
? (
|
? (
|
||||||
<SWRConfig value={{
|
<SWRConfig value={{
|
||||||
shouldRetryOnError: false,
|
shouldRetryOnError: false,
|
||||||
|
revalidateOnFocus: false,
|
||||||
}}>
|
}}>
|
||||||
{children}
|
{children}
|
||||||
</SWRConfig>
|
</SWRConfig>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user