InsightInterface
InsightInterface
This is for:
DeveloperIn this article
The InsightInterface
controller is responsible for retrieving the Insight interface configuration.
Methods
subscribe
Adds a callback that’s invoked on state change.
Parameters
-
listener:
() => void
A callback that’s invoked on state change.
Returns Unsubscribe
: A function to remove the listener.
Attributes
state
A scoped and simplified part of the headless state that is relevant to the InsightInterface
controller.
Properties
-
loading:
boolean
-
config?:
{ contextFields: Record<string, string>; interface?: InsightInterface; }
-
error?:
InsightAPIErrorStatusResponse
Was this article useful?
Thanks for your feedback!