Fix up some of the new formatting stuff

This commit is contained in:
Gregory Schier
2024-10-22 08:07:56 -07:00
parent e216214085
commit 57a05d5486
7 changed files with 70 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ export function useFormatText({
pretty: boolean;
}) {
return useQuery({
queryKey: [text],
queryKey: [text, language, pretty],
queryFn: async () => {
if (text === '' || !pretty) {
return text;