Why do we always trigger many requests every time we focus on the page ? #1731

Closed
opened 2026-02-21 17:37:11 -05:00 by yindo · 0 comments
Owner

Originally created by @Mxtzz on GitHub (Apr 2, 2024).

Originally assigned to: @iamjoel, @zxhlyh on GitHub.

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.5.11

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

  1. Open any page
  2. Blur the page
  3. Focus the page
  4. See the network in browser's console

✔️ Expected Behavior

The network page of console is very refreshing

Actual Behavior

There are many requests.

The reason for the problem is the configuration of SWR: web/app/components/swr-initor.tsx, add revalidateOnFocus=false is better.

Is it a bug or feat?

Originally created by @Mxtzz on GitHub (Apr 2, 2024). Originally assigned to: @iamjoel, @zxhlyh on GitHub. ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.5.11 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce 1. Open any page 2. Blur the page 3. Focus the page 4. See the network in browser's console ### ✔️ Expected Behavior The network page of console is very refreshing ### ❌ Actual Behavior There are many requests. The reason for the problem is the configuration of SWR: web/app/components/swr-initor.tsx, add revalidateOnFocus=false is better. Is it a bug or feat?
yindo added the 🐞 bug label 2026-02-21 17:37:11 -05:00
yindo closed this issue 2026-02-21 17:37:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#1731