Function usePreventAction
- usePreventAction(__namedParameters?): {
handleLoadEnd: ((isOk: boolean) => void);
handleLoadStart: (() => void);
loading: undefined | boolean;
} Parameters
Optional
__namedParameters: IParams = {}
Returns {
handleLoadEnd: ((isOk: boolean) => void);
handleLoadStart: (() => void);
loading: undefined | boolean;
}
- An object containing the handleLoadStart, handleLoadEnd, and loading properties.
Readonly
handleLoadEnd: ((isOk: boolean) => void)
Readonly
handleLoadStart: (() => void)
Readonly
loading: undefined | boolean
A hook that allows preventing an action based on loading state.