Skip to content

Commit f1dbf82

Browse files
committed
address Copilot review: preserve explicit fetchPolicy on page query
1 parent 214248f commit f1dbf82

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

react/src/pages/DeploymentDetailPage.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
BAICard,
2222
BAIFlex,
2323
BAIUnmountAfterClose,
24+
INITIAL_FETCH_KEY,
2425
toGlobalId,
2526
useFetchKey,
2627
} from 'backend.ai-ui';
@@ -83,7 +84,11 @@ const DeploymentDetailPage: React.FC = () => {
8384
{
8485
deploymentId: deploymentGlobalId,
8586
},
86-
{ fetchKey },
87+
{
88+
fetchKey,
89+
fetchPolicy:
90+
fetchKey === INITIAL_FETCH_KEY ? 'store-and-network' : 'network-only',
91+
},
8792
);
8893

8994
if (!deployment) {

0 commit comments

Comments
 (0)