An ergonomic wrapper for react-query's useMutationState
export function useCreatePostMutation(...) {
return useMutation({ mutationKey: ['create-post'], ... })
}
export function useCreatePostMutationState(...) {
return useLatestMutationState({ mutationKey: ['create-post'] })
}