Skip to content
代码片段 群组 项目
提交 f1766d6b 编辑于 作者: lesley's avatar lesley
浏览文件

Implement `network-only` refetch policy for Duo Chat messages

上级 f5d5cfb3
No related branches found
No related tags found
无相关合并请求
......@@ -16,6 +16,7 @@ import { i18n, GENIE_CHAT_RESET_MESSAGE, GENIE_CHAT_CLEAR_MESSAGE } from 'ee/ai/
import { InternalEvents } from '~/tracking';
import getAiSlashCommands from 'ee/ai/graphql/get_ai_slash_commands.query.graphql';
import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
import { fetchPolicies } from '~/lib/graphql';
import {
TANUKI_BOT_TRACKING_EVENT_NAME,
MESSAGE_TYPES,
......@@ -72,6 +73,7 @@ export default {
skip() {
return !this.duoChatGlobalState.isShown;
},
fetchPolicy: fetchPolicies.NETWORK_ONLY,
result({ data }) {
if (data?.aiMessages?.nodes) {
this.setMessages(data.aiMessages.nodes);
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册