More invalidation

This commit is contained in:
Dan Abramov
2024-10-23 19:04:55 +01:00
parent 0510c6e3e0
commit a02f4fc75c
+5
View File
@@ -183,6 +183,11 @@ export async function post(
postUri: res.uri,
})),
})
for (const feedUri of draft.feeds) {
queryClient.invalidateQueries({
queryKey: ['post-feed', 'feedgen|' + feedUri, {}],
})
}
} catch (e: any) {
logger.error(`Failed to create submission records`, {
context: 'composer',