diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-11-08 17:48:54 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-11-08 17:48:54 +0900 |
| commit | 79c3528bbcd82c6eed67b17747ded31af09a4a64 (patch) | |
| tree | 0b544d66cfb70cdce15b005b6dffbe4aeb218248 /frontend/src/components/AddFeedForm.tsx | |
| parent | 6dbc5bbcacf99e4941ee8e1fb67bd132d0f517ed (diff) | |
| download | feedaka-79c3528bbcd82c6eed67b17747ded31af09a4a64.tar.gz feedaka-79c3528bbcd82c6eed67b17747ded31af09a4a64.tar.zst feedaka-79c3528bbcd82c6eed67b17747ded31af09a4a64.zip | |
fix(frontend): Fix incorrect caching settingsv0.4.1
Diffstat (limited to 'frontend/src/components/AddFeedForm.tsx')
| -rw-r--r-- | frontend/src/components/AddFeedForm.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/components/AddFeedForm.tsx b/frontend/src/components/AddFeedForm.tsx index 519f9e3..6d18318 100644 --- a/frontend/src/components/AddFeedForm.tsx +++ b/frontend/src/components/AddFeedForm.tsx @@ -8,6 +8,8 @@ interface Props { onFeedAdded?: () => void; } +const urqlContextFeed = { additionalTypenames: ["Feed"] }; + export function AddFeedForm({ onFeedAdded }: Props) { const [url, setUrl] = useState(""); const [error, setError] = useState<string | null>(null); @@ -20,7 +22,7 @@ export function AddFeedForm({ onFeedAdded }: Props) { setError(null); try { - const result = await addFeed({ url: url.trim() }); + const result = await addFeed({ url: url.trim() }, urqlContextFeed); if (result.error) { setError(result.error.message); } else if (result.data) { |
