Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

fix(own): Prevent infinite UI update loop in own pages#64312

Merged
fkling merged 1 commit intomainfrom
fkling/fix-own-page-performance
Aug 6, 2024
Merged

fix(own): Prevent infinite UI update loop in own pages#64312
fkling merged 1 commit intomainfrom
fkling/fix-own-page-performance

Conversation

@fkling
Copy link
Contributor

@fkling fkling commented Aug 6, 2024

I noticed that my computer fans kept on spinning when visiting https://sourcegraph.test:3443/github.com/sourcegraph/sourcegraph/-/own and https://sourcegraph.test:3443/github.com/sourcegraph/sourcegraph/-/own/edit.

Long story short because we are not memoizing the breadcrumbs we are in an infinite update loop. The offending commit is
c42c57d.

React profiler screenshot:

2024-08-06_22-17

Test plan

Manual testing. Fans stopped spinning.

I noticed that my computer fans kept on spinning when visiting https://sourcegraph.test:3443/github.com/sourcegraph/sourcegraph/-/own and
https://sourcegraph.test:3443/github.com/sourcegraph/sourcegraph/-/own/edit.

Long story short because we are not memomizing the breakcrumbs we are in
an infinite update loop. The offending commit is
c42c57d.
@fkling fkling requested a review from a team August 6, 2024 20:19
@fkling fkling self-assigned this Aug 6, 2024
@cla-bot cla-bot bot added the cla-signed label Aug 6, 2024
Copy link
Member

@camdencheek camdencheek left a comment

Choose a reason for hiding this comment

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

Oof! Good catch

@fkling fkling merged commit b6a25c8 into main Aug 6, 2024
@fkling fkling deleted the fkling/fix-own-page-performance branch August 6, 2024 20:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants