Skip to content

Loadout Optimizer: wait for vendor items before the first search#11861

Open
delphiactual wants to merge 1 commit into
masterfrom
lo-wait-for-vendors
Open

Loadout Optimizer: wait for vendor items before the first search#11861
delphiactual wants to merge 1 commit into
masterfrom
lo-wait-for-vendors

Conversation

@delphiactual

@delphiactual delphiactual commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Entering LO kicked off a search immediately, then vendor items finished loading a few seconds later, changing the inputs and restarting the whole search. Track completion of the vendor load (including the follow-up item component fetches) and hold off processing until it settles, presenting the wait as processing so the UI doesn't flash a no-results state. Vendor load failures resolve the same promise, so a failed load starts the search without vendor items rather than pausing forever. Refreshes don't re-enter the loading state; unchanged inputs are already caught by the existing input memoization.

Entering LO kicked off a search immediately, then vendor items finished loading a few seconds later, changing the inputs and restarting the whole search. Track completion of the vendor load (including the follow-up item component fetches) and hold off processing until it settles, presenting the wait as processing so the UI doesn't flash a no-results state. Vendor load failures resolve the same promise, so a failed load starts the search without vendor items rather than pausing forever. Refreshes don't re-enter the loading state; unchanged inputs are already caught by the existing input memoization.

Changelog: The Loadout Optimizer now waits for vendor items to finish loading before starting its search, instead of starting a search and immediately restarting it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant