Compare commits
No commits in common. "3af6216828587cd6d109bc61725a4c2d135ed58e" and "91e45f523fce8ad1aa3cc6e4e7af42cbe3922889" have entirely different histories.
3af6216828
...
91e45f523f
|
|
@ -16,12 +16,12 @@ export function useSport() {
|
|||
},
|
||||
});
|
||||
|
||||
// const createSportStandard = api.sportStandard.createStandard.useMutation({
|
||||
// onSuccess: (result) => {
|
||||
// queryClient.invalidateQueries({ queryKey: queryKeyStandard });
|
||||
// emitDataChange(ObjectType.SPORT_STANDARD, result, CrudOperation.CREATED);
|
||||
// },
|
||||
// });
|
||||
const createSportStandard = api.sportStandard.createStandard.useMutation({
|
||||
onSuccess: (result) => {
|
||||
queryClient.invalidateQueries({ queryKey: queryKeyStandard });
|
||||
emitDataChange(ObjectType.SPORT_STANDARD, result, CrudOperation.CREATED);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in New Issue