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

fix: laggy switch #3814

Merged
merged 3 commits into from
May 19, 2023
Merged

fix: laggy switch #3814

merged 3 commits into from
May 19, 2023

Conversation

andreas-unleash
Copy link
Contributor

@andreas-unleash andreas-unleash commented May 19, 2023

Fixes laggy environment switch

About the changes

Stabilising the functions with useCallback seems necessary in the table view
Changed the checked property to be dependent on isChecked which wraps the value in useOptimisticUpdate hook made the most difference

Closes #(1-942)[https://linear.app/unleash/issue/1-942/bug-laggy-environment-toggles-in-the-ui]

Important files

Discussion points

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
@vercel
Copy link

vercel bot commented May 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 19, 2023 0:51am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) May 19, 2023 0:51am

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
@andreas-unleash andreas-unleash enabled auto-merge (squash) May 19, 2023 12:59
@andreas-unleash andreas-unleash merged commit e1dd170 into main May 19, 2023
16 checks passed
@andreas-unleash andreas-unleash deleted the fix/laggy_switch branch May 19, 2023 13:13
gastonfournier added a commit that referenced this pull request May 19, 2023
gastonfournier added a commit that referenced this pull request May 19, 2023
Reverts #3814 forcing merge to fix issue in demo instance: #3815 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants