[orchestrator-1.8] fix(orchestrator-form-widgets): show spinner immediately on ActiveText retrigger#2402
Conversation
Made-with: Cursor # Conflicts: # workspaces/orchestrator/plugins/orchestrator-form-widgets/src/utils/useFetch.ts
Document the new fetch:clearOnRetrigger behavior in the existing changeset for the ActiveText retrigger spinner update. Co-authored-by: Cursor <cursoragent@cursor.com>
Extract shared clear-on-retrigger behavior into a reusable hook and reuse it across ActiveTextInput, ActiveDropdown, and ActiveMultiSelect. Co-authored-by: Cursor <cursoragent@cursor.com>
Ignore stale fetch responses when retrigger values change and avoid reapplying cached data while a retriggered fetch is loading. Use layout effect for clearOnRetrigger to reduce UI flicker. Co-authored-by: Cursor <cursoragent@cursor.com>
Made-with: Cursor
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
|
Tested locally, working fine. Screen.Recording.2026-02-26.at.12.47.32.PM.mov |
135ca53
into
redhat-developer:orchestrator-1.8



User description
Manual cherrypick of #2279
PR Type
Bug fix, Enhancement
Description
Add
fetch:clearOnRetriggeroption to clear widget values on dependency changesShow spinner immediately when retrigger dependencies change, before fetch completes
Prevent stale data display by ignoring outdated fetch responses during retrigger
Extract reusable
useClearOnRetriggerhook for consistent behavior across widgetsDiagram Walkthrough
File Walkthrough
6 files
Add fetch:clearOnRetrigger UI property typeCreate reusable hook for clearing on retriggerExport new useClearOnRetrigger hookIntegrate useClearOnRetrigger and skip data during loadingIntegrate useClearOnRetrigger hook for dropdownIntegrate useClearOnRetrigger hook for multi-select2 files
Guard against stale fetch responses and show spinner immediatelyKeep spinner visible during debounce window after changes2 files
Document spinner and clearOnRetrigger behavior changesDocument fetch:clearOnRetrigger property in API docs