Fix catalog filter flicker caused by stale render cycle
The EntityListProvider exposed entities from `outputState` (synced via useEffect) but `loading` from `useAsyncFn`. When the async function resolved, `loading` flipped to false one render before `outputState` updated, causing a flash of stale data between the loading indicator and the new results. Use `resolvedValue` directly in the context value when available, eliminating the extra render lag. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Fredrik Adelöw <freben@spotify.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-react': patch
|
||||
---
|
||||
|
||||
Fixed a UI flicker in the catalog entity list where changing a filter would briefly flash stale data before showing the new results.
|
||||
Reference in New Issue
Block a user