is_package_loading_preflight

Function is_package_loading_preflight 

Source
pub fn is_package_loading_preflight(app: &AppState, package_name: &str) -> bool
Expand description

What: Check if a package is currently being processed by any preflight resolver.

Inputs:

  • app: Application state containing preflight resolution queues and flags.
  • package_name: Name of the package to check.

Output:

  • true if the package is in any preflight resolution queue and the corresponding resolver is active.

Details:

  • Checks if the package name appears in any of the preflight queues (summary, deps, files, services, sandbox) and if the corresponding resolving flag is set to true.
  • Also checks install list resolution (when preflight modal is not open) by checking if the package is in app.install_list and any resolver is active.