Advanced functionality
This section describes advanced functionality with the Typecast SDK.
Last updated
This section describes advanced functionality with the Typecast SDK.
Last updated
Subscribe to logs from Typecast by providing a handler for the Typecast.subscribeToTypecastLogs
function (usually console.log
).
You will then see logs from Typecast in your console (or wherever you handle logs).
For a list of all logs that Typecast collects during a session, you can also call the Typecast.getTypecastLogs()
function, which returns an array of logs.
If you wish to use a custom loading component for a Cast, you can pass the loading component through the Cast LoadingComponent
prop.
LoadingComponent must be of type
React.ReactNode
.
Remove user orgKey
, and customerExternalId
from their window.localStorage
by calling the Typecast.cleanUp()
function wherever you handle logging out.
Typecast caches those values to ensure that changes load even if initializeTypecast
is not reached when a user loads a page.