invalidateIfChanged Method

Check whether the iModel's schemas have changed since the current view was built, and discard the view only if they have. For hosts that cannot determine whether an operation actually modified schemas - e.g. BriefcaseConnection.pullChanges on the frontend, whose IPC response carries only the new changeset id, not the applied changesets' types. Discarding after every such operation would reload unnecessarily in the common case where schemas are unchanged, so this compares the cheap schema-identity token instead.

invalidateIfChanged(): Promise<void>

@note If the token cannot be fetched, the view is discarded rather than risking stale metadata.

Returns - Promise

Defined in

Last Updated: 30 September, 2026