Skip to content

Empty state message flashes briefly during schema sync in schema view #1557

@kmcginnes

Description

@kmcginnes

Description

When a schema sync is in progress on the schema view, the NoNodeTypesEmptyState component briefly flashes (e.g., "No Node Labels Available") before the schema finishes loading and the actual content appears. This creates a jarring visual experience.

The issue was introduced when the SchemaDiscoveryBoundary was reordered to show the loading state before checking for existing data. During the transition between the loading spinner completing and the schema data being available, the empty state renders for a frame or two.

Steps to Reproduce

  1. Open the schema view with a connected database
  2. Trigger a schema sync (or refresh the page)
  3. Observe a brief flash of "No Node Labels Available" before the schema graph renders

Expected Behavior

The schema view should transition directly from the loading state to the populated schema view without showing the empty state message.

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    schemaIssues related to the schema definition or synchronizationusabilityIssues relating to the ease of use of the UI or features

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions