v0.29.0
Minor Changes
-
1237ce4: BREAKING: Rename
resultQueryFntoqueryFnandresultMutationFntomutationFnThe
resultprefix was redundant since the TypeScript signature already encodes that these functions return Result types. This removes unnecessary Hungarian notation from the API.Migration:
// Before defineQuery({ queryKey: ["users"], resultQueryFn: () => getUsers(), }); defineMutation({ mutationKey: ["users", "create"], resultMutationFn: (input) => createUser(input), }); // After defineQuery({ queryKey: ["users"], queryFn: () => getUsers(), }); defineMutation({ mutationKey: ["users", "create"], mutationFn: (input) => createUser(input), });