Skip to content

Commit 77c8455

Browse files
committed
fix: comments spelling
1 parent c2abb4b commit 77c8455

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/toolkit/src/query/core/buildThunks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
519519
arg.forceRefetch ?? (arg.subscribe && baseFetchOnMountOrArgChange)
520520

521521
if (refetchVal) {
522-
// Return if its true or compare the dates because it must be a number
522+
// Return if it's true or compare the dates because it must be a number
523523
return (
524524
refetchVal === true ||
525525
(Number(new Date()) - Number(fulfilledVal)) / 1000 >= refetchVal

packages/toolkit/src/query/endpointDefinitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ interface EndpointDefinitionWithQueryFn<
135135
* if (randomVal < 0.9) {
136136
* return { data: 'tails' }
137137
* }
138-
* return { error: { status: 500, statusText: 'Internal Server Error', data: "Coin landed on it's edge!" } }
138+
* return { error: { status: 500, statusText: 'Internal Server Error', data: "Coin landed on its edge!" } }
139139
* }
140140
* // highlight-end
141141
* })

packages/toolkit/src/query/react/buildHooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ export type UseMutationStateResult<
522522
> = TSHelpersNoInfer<R> & {
523523
originalArgs?: QueryArgFrom<D>
524524
/**
525-
* Resets the hook state to it's initial `uninitialized` state.
525+
* Resets the hook state to its initial `uninitialized` state.
526526
* This will also remove the last result from the cache.
527527
*/
528528
reset: () => void

0 commit comments

Comments
 (0)