Skip to content

Commit

Permalink
[Entity Analytics] Fix flickering "Enable risk engine" button (#204486)
Browse files Browse the repository at this point in the history
## 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 Dec 17, 2024
1 parent ed6a1a4 commit c4cf9fe
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 c4cf9fe

Please sign in to comment.