Skip to content

Commit 4b5c359

Browse files
authored
docs: typo (#1169)
1 parent f20bc7e commit 4b5c359

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/docs/api/interfaces/pinia._StoreWithState.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ On top of these, it receives two functions that allow setting up a callback
9090
once the action finishes or when it fails.
9191

9292
It also returns a function to remove the callback. Note than when calling
93-
`store.$onAction()` inside of a component, it will be automatically cleanup
93+
`store.$onAction()` inside of a component, it will be automatically cleaned
9494
up when the component gets unmounted unless `detached` is set to true.
9595

9696
**`example`**
@@ -136,7 +136,7 @@ On top of these, it receives two functions that allow setting up a callback
136136
once the action finishes or when it fails.
137137

138138
It also returns a function to remove the callback. Note than when calling
139-
`store.$onAction()` inside of a component, it will be automatically cleanup
139+
`store.$onAction()` inside of a component, it will be automatically cleaned
140140
up when the component gets unmounted unless `detached` is set to true.
141141

142142
**`example`**
@@ -238,7 +238,7 @@ ___
238238
**$subscribe**(`callback`, `options?`): () => `void`
239239

240240
Setups a callback to be called whenever the state changes. It also returns a function to remove the callback. Note
241-
than when calling `store.$subscribe()` inside of a component, it will be automatically cleanup up when the
241+
than when calling `store.$subscribe()` inside of a component, it will be automatically cleaned up when the
242242
component gets unmounted unless `detached` is set to true.
243243

244244
#### Parameters
@@ -257,7 +257,7 @@ function that removes the watcher
257257
▸ (): `void`
258258

259259
Setups a callback to be called whenever the state changes. It also returns a function to remove the callback. Note
260-
than when calling `store.$subscribe()` inside of a component, it will be automatically cleanup up when the
260+
than when calling `store.$subscribe()` inside of a component, it will be automatically cleaned up when the
261261
component gets unmounted unless `detached` is set to true.
262262

263263
##### Returns

packages/pinia/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export interface _StoreWithState<
361361

362362
/**
363363
* Setups a callback to be called whenever the state changes. It also returns a function to remove the callback. Note
364-
* than when calling `store.$subscribe()` inside of a component, it will be automatically cleanup up when the
364+
* than when calling `store.$subscribe()` inside of a component, it will be automatically cleaned up when the
365365
* component gets unmounted unless `detached` is set to true.
366366
*
367367
* @param callback - callback passed to the watcher
@@ -386,7 +386,7 @@ export interface _StoreWithState<
386386
* once the action finishes or when it fails.
387387
*
388388
* It also returns a function to remove the callback. Note than when calling
389-
* `store.$onAction()` inside of a component, it will be automatically cleanup
389+
* `store.$onAction()` inside of a component, it will be automatically cleaned
390390
* up when the component gets unmounted unless `detached` is set to true.
391391
*
392392
* @example

0 commit comments

Comments
 (0)