-
Notifications
You must be signed in to change notification settings - Fork 78
fix(orchestrator): Disable Next button when active widgets are fetching and processing data #1672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(orchestrator): Disable Next button when active widgets are fetching and processing data #1672
Conversation
Important This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior. Changed Packages
|
|
setAuthTokenDescriptors: ( | ||
authTokenDescriptors: AuthTokenDescriptor[], | ||
) => void; | ||
handleFetchStarted?: () => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a need to have those as optional?
}, [formApi]); | ||
|
||
return <NewComponent {...props} />; | ||
const propsWithFetchHandlers = useMemo( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be left to the FormComponent
? Similar to the handleValidate*
hooks.
|
||
setLabels(selectedLabels); | ||
setValues(selectedValues); | ||
await wrapProcessing(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is that? Isn't tracking of the fetch
enough?
These applySelector*
are just sort of filtering the already loaded data
* @param handleFetchEnded - Optional callback to notify when processing ends | ||
* @returns Object containing processing state management | ||
*/ | ||
export const useProcessingState = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure we need this additional hook. All the data is in the form context, including isFecthing
Hey, I just made a Pull Request!
Story:
https://issues.redhat.com/browse/FLPATH-2770
Disable Next button when active widgets are fetching and processing data
✔️ Checklist