Unverified 提交 bd715a2e authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

invalidate problems when version is reverted (#546)

上级 cf11cc6f
......@@ -60,6 +60,9 @@ export function useVersions(appId: number | null) {
const chat = await IpcClient.getInstance().getChat(selectedChatId);
setMessages(chat.messages);
}
await queryClient.invalidateQueries({
queryKey: ["problems", appId],
});
},
meta: { showErrorToast: true },
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论