Skip to content

Commit

Permalink
fix(react-components): ensure edge connection fetching updates on mod…
Browse files Browse the repository at this point in the history
…el change and bump to version 0.54.2 (#4679)
  • Loading branch information
haakonflatval-cognite authored Jul 25, 2024
1 parent b4a8a97 commit dd0890d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion react-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cognite/reveal-react-components",
"version": "0.54.1",
"version": "0.54.2",
"exports": {
".": {
"import": "./dist/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ export const useFdmAssetMappings = (
const nodeCacheContent = useFdmNodeCache();

return useQuery({
queryKey: ['reveal', 'react-components', 'fdm-asset-mappings', fdmAssetExternalIds],
queryKey: [
'reveal',
'react-components',
'fdm-asset-mappings',
fdmAssetExternalIds,
models.map((model) => [model.modelId, model.revisionId])
],
queryFn: async () => {
return await nodeCacheContent.cache.getMappingsForFdmIds(fdmAssetExternalIds, models);
},
Expand Down

0 comments on commit dd0890d

Please sign in to comment.