Skip to content

Commit

Permalink
fix: typo in useResult deprecation message (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoordsij committed Oct 5, 2022
1 parent d5fab5e commit 3728928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-apollo-composable/src/useResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function useResult<
defaultValue?: TDefaultValue,
pick?: (data: DeepRequired<DeepNonNullable<TResult>>) => TReturnValue,
): UseResultReturn<TResult | TResult[keyof TResult] | TDefaultValue | TReturnValue | undefined> {
console.warn(`'useResult' is deprecated and will be removed soon. Plase use a computed instead.
console.warn(`'useResult' is deprecated and will be removed soon. Please use 'computed' instead.
Before:
const items = useResult(result, [], data => data.someField.myItems)
After:
Expand Down

0 comments on commit 3728928

Please sign in to comment.