Function useStreamConsentList
- useStreamConsentList(onAction?, onError?): {
error: null | Error;
} Parameters
Optional
onAction: ((action: PrivatePreferencesAction) => void | Promise<void>)- (action): void | Promise<void>
Parameters
- action: PrivatePreferencesAction
Returns void | Promise<void>
Optional
onError: ((error: Error) => void)- (error): void
Returns void
Returns {
error: null | Error;
}
This hook streams new consent list actions on mount and exposes an error state.