@@ -233,7 +233,7 @@ export function useSWRHandler<Data = any, Error = any>(
233
233
] = getGlobalState ( cache )
234
234
235
235
// `key` is the identifier of the SWR `data` state.
236
- // `keyErr` and `keyValidating` are indentifiers of `error` and `isValidating`
236
+ // `keyErr` and `keyValidating` are identifiers of `error` and `isValidating`
237
237
// which are derived from `key`.
238
238
// `fnArgs` is a list of arguments for `fn`.
239
239
const [ key , fnArgs , keyErr , keyValidating ] = serialize ( _key )
@@ -256,7 +256,7 @@ export function useSWRHandler<Data = any, Error = any>(
256
256
257
257
// A revalidation must be triggered when mounted if:
258
258
// - `revalidateOnMount` is explicitly set to `true`.
259
- // - Suspense mode and there's stale data for the inital render.
259
+ // - Suspense mode and there's stale data for the initial render.
260
260
// - Not suspense mode and there is no `initialData` and `revalidateWhenStale` is enabled.
261
261
// - `revalidateWhenStale` is enabled but `data` is not defined.
262
262
const shouldRevalidateOnMount = ( ) => {
@@ -494,7 +494,7 @@ export function useSWRHandler<Data = any, Error = any>(
494
494
useIsomorphicLayoutEffect ( ( ) => {
495
495
if ( ! key ) return UNDEFINED
496
496
497
- // Not the inital render.
497
+ // Not the initial render.
498
498
const keyChanged = initialMountedRef . current
499
499
const softRevalidate = ( ) => revalidate ( { dedupe : true } )
500
500
0 commit comments