Skip to content

Add conditional render to migration targets page to wait for targets and target order setting to load #2721

@coderabbitai

Description

@coderabbitai

Context

This issue was created as a follow-up from PR #2719 (comment discussion: #2719 (comment)).

During review of the custom target order handling fix, a race condition was identified where the target order setting might not be fully loaded when targets are being rendered or when a new target is created.

Description

Add conditional rendering to the migration targets page so that targets are only displayed once both the targets data and the target order setting are fully loaded.

This will ensure consistent behavior and prevent potential issues during:

  • Initial page render
  • Target creation
  • Target deletion
  • Target reordering

Requested by

@sjd78

Related

Metadata

Metadata

Assignees

Labels

kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.priority/minorLowest priority. Possibly useful, but not yet enough support to actually get it done.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions