Skip to content

Commit

Permalink
fix: comments spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfk committed Jun 3, 2024
1 parent c2abb4b commit 77c8455
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/toolkit/src/query/core/buildThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
arg.forceRefetch ?? (arg.subscribe && baseFetchOnMountOrArgChange)

if (refetchVal) {
// Return if its true or compare the dates because it must be a number
// Return if it's true or compare the dates because it must be a number
return (
refetchVal === true ||
(Number(new Date()) - Number(fulfilledVal)) / 1000 >= refetchVal
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/src/query/endpointDefinitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ interface EndpointDefinitionWithQueryFn<
* if (randomVal < 0.9) {
* return { data: 'tails' }
* }
* return { error: { status: 500, statusText: 'Internal Server Error', data: "Coin landed on it's edge!" } }
* return { error: { status: 500, statusText: 'Internal Server Error', data: "Coin landed on its edge!" } }
* }
* // highlight-end
* })
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/src/query/react/buildHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ export type UseMutationStateResult<
> = TSHelpersNoInfer<R> & {
originalArgs?: QueryArgFrom<D>
/**
* Resets the hook state to it's initial `uninitialized` state.
* Resets the hook state to its initial `uninitialized` state.
* This will also remove the last result from the cache.
*/
reset: () => void
Expand Down

0 comments on commit 77c8455

Please sign in to comment.