Skip to content

Commit

Permalink
[Entity Analytics] Fix flickering "Enable risk engine" button (elasti…
Browse files Browse the repository at this point in the history
…c#204486)

## Summary

When we refetch the engine status, the enable component was flickering,
I have changed it so we only load on the first request, after that we
keep displaying the "stale" value while the request is fetching.

Here is the flicker, blink and you'll miss it!



https://github.com/user-attachments/assets/5271674c-1534-470a-996f-058afd5ed76f
  • Loading branch information
hop-dev authored and JoseLuisGJ committed Dec 19, 2024
1 parent 636e6e2 commit e8c3c44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export const RiskScoreEnableSection: React.FC<{
<RiskEngineStatusRow
currentRiskEngineStatus={currentRiskEngineStatus}
onSwitchClick={onSwitchClick}
isLoading={isLoading}
isLoading={isLoading && !currentRiskEngineStatus}
privileges={privileges}
/>
)}
Expand Down

0 comments on commit e8c3c44

Please sign in to comment.