We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a546428 commit 2ff1330Copy full SHA for 2ff1330
packages/ra-core/src/dataProvider/useCreate.ts
@@ -225,7 +225,7 @@ export const useCreate = <
225
variables,
226
context: { snapshot: Snapshot }
227
) => {
228
- // For deletion, we always refetch after error or success:
+ // For creation, we always refetch after error or success:
229
context.snapshot.forEach(([queryKey]) => {
230
queryClient.invalidateQueries({ queryKey });
231
});
0 commit comments