Skip to main content
Version: 1.1.0

ICANotificationCenterBaseConfig

@spartanfx/react v1.1.0


@spartanfx/react / codeapps / ICANotificationCenterBaseConfig

Interface: ICANotificationCenterBaseConfig

Base config shared by CodeApps notification adapters.

Extends

Properties

PropertyTypeDescriptionInherited from
autoRefresh?booleanEnable auto-refresh after mutations (default: true).ICAAdapterBaseConfig.autoRefresh
cacheDuration?numberCache TTL for read results in ms (default: 60_000).ICAAdapterBaseConfig.cacheDuration
choiceColumns?string[]SharePoint-only: column names backed by Choice / Lookup / Person columns. The hook calls service.getReferencedEntity and substitutes the matching expanded object on create/update. Defaults to [schema.level] for the SharePoint wrapper so the standard Level choice column is handled automatically. See: https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/sharepoint-operations-
debug?booleanEnable verbose console logging (default: false).ICAAdapterBaseConfig.debug
defaultToastDurationMs?numberDefault toast duration in ms (default: 4000).-
maxItems?numberMaximum items to load on initial fetch (default: 100).-
onError?(error) => voidError callback. Called for every operational failure.ICAAdapterBaseConfig.onError
onNotify?CANotifyFnNotification callback. If omitted, hook errors surface via error state only.ICAAdapterBaseConfig.onNotify
onToast?(item, durationMs) => voidToast handler. Called when addNotification is invoked with mode toastOnly or toastAndList. Defaults to onNotify if provided; otherwise toast emission is skipped.-
retryPolicy?ICARetryPolicyRetry policy for transient failures.ICAAdapterBaseConfig.retryPolicy
serviceICATabularService<CANotificationRecord, string>Generated service exposed by pac code add-data-source.-