Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dashboard] fix arbitrary useEffect #11923

Merged
merged 1 commit into from
Aug 5, 2022
Merged

[dashboard] fix arbitrary useEffect #11923

merged 1 commit into from
Aug 5, 2022

Conversation

AlexTugarev
Copy link
Member

@AlexTugarev AlexTugarev commented Aug 5, 2022

Description

Randomly checking webapp dashboards after recent deployment shows excessive calls to newly getSupportedWorkspaceClasses operations caused by useEffect without dependency specification, thus causing evaluation without need.

Screen Shot 2022-08-05 at 14 40 16

Related Issue(s)

Relates to #11571

How to test

Release Notes

NONE

Documentation

Werft options:

  • /werft with-preview

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-at-useeffects.1 because the annotations in the pull request description changed
(with .werft/ from main)

@AlexTugarev AlexTugarev requested review from Furisto and geropl August 5, 2022 12:46
@geropl
Copy link
Member

geropl commented Aug 5, 2022

@AlexTugarev Wanted to ask you to look into this, got a message and noticed this PR fixes it already 🤯 🦸

@roboquat roboquat merged commit 7eb88a9 into main Aug 5, 2022
@roboquat roboquat deleted the at/useEffects branch August 5, 2022 12:50
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/XS team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants