mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 20:06:54 +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:
@@ -32,6 +32,7 @@ const SwrInitor = ({
|
|||||||
? (
|
? (
|
||||||
<SWRConfig value={{
|
<SWRConfig value={{
|
||||||
shouldRetryOnError: false,
|
shouldRetryOnError: false,
|
||||||
|
revalidateOnFocus: false,
|
||||||
}}>
|
}}>
|
||||||
{children}
|
{children}
|
||||||
</SWRConfig>
|
</SWRConfig>
|
||||||
|
|||||||
Reference in New Issue
Block a user