Skip to content

Commit 2ff1330

Browse files
authored
[no ci] Fix comment
1 parent a546428 commit 2ff1330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ra-core/src/dataProvider/useCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export const useCreate = <
225225
variables,
226226
context: { snapshot: Snapshot }
227227
) => {
228-
// For deletion, we always refetch after error or success:
228+
// For creation, we always refetch after error or success:
229229
context.snapshot.forEach(([queryKey]) => {
230230
queryClient.invalidateQueries({ queryKey });
231231
});

0 commit comments

Comments
 (0)