Function useStreamConsentList

This hook streams new consent list actions on mount and exposes an error state.

  • Parameters

    • OptionalonAction: ((action: PrivatePreferencesAction) => void | Promise<void>)
        • (action): void | Promise<void>
        • Parameters

          • action: PrivatePreferencesAction

          Returns void | Promise<void>

    • OptionalonError: ((error: Error) => void)
        • (error): void
        • Parameters

          • error: Error

          Returns void

    Returns {
        error: null | Error;
    }

    • error: null | Error