function
Source: index.ts ↗
clearInsightViewCacheForInsight()
Clears the cached definition of a single insight used by the InsightView components.
export declare function clearInsightViewCacheForInsight(workspace: string, ref: ObjRef): void;
Parameters
Parameter | Type | Description |
|---|---|---|
workspace | string | the workspace the insight belongs to |
ref | the ref of the insight whose cached definition should be dropped |
Returns
void
Remarks
Use this after an insight has been edited, so that the next render fetches the new definition. To clear every cache at once, use clearInsightViewCaches().