Skip to content

Commit c03768c

Browse files
authored
Merge pull request #4 from Paca-AI/feature/add-viewid-to-view-extension-props
feat: add viewId to ViewExtensionProps for unique view instance ident…
2 parents 40bb454 + 27947f3 commit c03768c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/extension-points.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ export interface ProjectSettingsTabProps extends BaseExtensionProps {
8888
export interface ViewExtensionProps extends BaseExtensionProps {
8989
/** The project for which the view is rendered. */
9090
projectId: string;
91+
/** The host's own view record ID for this specific view instance — stable
92+
* across renames/reloads, unique per view even when multiple views of the
93+
* same plugin/component are created in the same project. Use this to key
94+
* any per-view persisted state instead of self-managing a separate
95+
* list/switcher inside the plugin. */
96+
viewId: string;
9197
/** The view configuration stored for this registration. */
9298
viewConfig?: Record<string, unknown>;
9399
}

0 commit comments

Comments
 (0)