Skip to content

fix: unpushed notification performance issue - #7966

Merged
CurryYangxx merged 4 commits into
developfrom
fix/unpushed-notification
Sep 18, 2024
Merged

fix: unpushed notification performance issue#7966
CurryYangxx merged 4 commits into
developfrom
fix/unpushed-notification

Conversation

@CurryYangxx

@CurryYangxx CurryYangxx commented Sep 14, 2024

Copy link
Copy Markdown
Member

close #7946

Issue reason:
The git/can-push and git/changes run too often because of the react-router revalidation mechanism.

Changes

  • add shouldRevalidate option to disable revalidation
  • run fetch.load in useInterval hook, every 30s
  • update react-router-dom to fix the shouldRevalidate not work (we updated in this pr bump: react-router #7795, but it seems to have been replaced because of the conflict)

@CurryYangxx
CurryYangxx force-pushed the fix/unpushed-notification branch from 41c9478 to cf692a2 Compare September 14, 2024 05:35
@CurryYangxx
CurryYangxx requested a review from a team September 14, 2024 05:45
@CurryYangxx
CurryYangxx marked this pull request as draft September 16, 2024 04:06
@CurryYangxx
CurryYangxx force-pushed the fix/unpushed-notification branch from 4954fab to f118f83 Compare September 18, 2024 03:39
@CurryYangxx
CurryYangxx marked this pull request as ready for review September 18, 2024 06:09
yaoweiprc
yaoweiprc previously approved these changes Sep 18, 2024
@CurryYangxx
CurryYangxx force-pushed the fix/unpushed-notification branch 2 times, most recently from ff85690 to b81d303 Compare September 18, 2024 09:15
@CurryYangxx
CurryYangxx force-pushed the fix/unpushed-notification branch from b81d303 to b51f533 Compare September 18, 2024 09:40
@cwangsmv
cwangsmv self-requested a review September 18, 2024 10:18

@cwangsmv cwangsmv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@CurryYangxx
CurryYangxx merged commit 18ef67e into develop Sep 18, 2024
@CurryYangxx
CurryYangxx deleted the fix/unpushed-notification branch September 18, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Insomnia working very slow after upgrade to 10

3 participants