You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: distinguish loading from empty in Data tab to avoid empty-state flash
Before: the Data tab panel read `topicsData` as `ComponentTopic[]`
seeded with `[]`. When the user switched entities the parent cleared
the array and then started a fetch; the child could render a full
"no data" panel for the new entity before the fetch resolved,
regardless of what the new entity actually had.
Now: `topicsData` is `ComponentTopic[] | null`. The parent resets it
to `null` at the start of every fetch (including the unsupported-type
branches and on error), and sets it to an array once the response is
in. The Data tab renders a skeleton for `null`, the normal list for a
non-empty array, and the empty/fallback state for `[]`.
This removes the need for a second in-flight request from the child
component and gives the fetch effect a single source of truth.
0 commit comments