-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react-components): avoid fetching classic asset mappings when in …
…coredm only and recache all revisionIds when requesting the connections with views (#4946) * Avoid fetching classic asset mappings when in coredm only and recache all revisionIds when request the connecitons with views * fix the request of views and add a hook with the coreDM flag * cr changes
- Loading branch information
Showing
4 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/*! | ||
* Copyright 2025 Cognite AS | ||
*/ | ||
import { useRenderTarget } from '../components'; | ||
|
||
export function useIsCoreDmOnly(): boolean { | ||
const renderTarget = useRenderTarget(); | ||
const isCoreDmOnly = renderTarget.cdfCaches.coreDmOnly; | ||
return isCoreDmOnly ?? false; | ||
} |