-
-
Notifications
You must be signed in to change notification settings - Fork 202
DevIndex: Apply load mask for initial Turbo Mode soft hydration #9330
Description
In Turbo Mode (autoInitRecords: false), the first time a filter is applied (e.g. searching by username, selecting a country, toggling the automation filter), the Store must perform a full "Soft Hydration" pass over all raw data objects (50k+ records). This synchronous operation blocks the App Worker, causing the UI to freeze momentarily without visual feedback.
Similar to the examples/grid/bigData implementation, we need to apply a non-blocking UI update pattern (setting isLoading = 'Is Loading' and yielding the thread via await this.timeout(5)) before triggering the first heavy store mutation.
This should be applied in DevIndex.view.home.MainContainerController to:
onFilterChangeonHideAutomationChangeonHireableChange
A firstFiltering boolean flag should be introduced to track and only apply the delay on the initial, most expensive pass.