]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: typo state
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 23 Feb 2021 13:53:41 +0000 (14:53 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 23 Feb 2021 13:53:45 +0000 (14:53 +0100)
README.md

index 248867c5d3e8a067d751919d40b5a9d26e83e0bc..50d506c58bd68f23095db220e0ce6d896626d1d1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -268,10 +268,10 @@ The main difference here is that `$patch` allows you to group multiple changes i
 
 ### Replacing the `state`
 
-Simply set it to a new object;
+Simply set your store `$stet` property to a new object:
 
 ```ts
-main.state = { counter: 666, name: 'Paimon' }
+main.$state = { counter: 666, name: 'Paimon' }
 ```
 
 ### SSR
@@ -421,6 +421,14 @@ export const useSharedStore = defineStore({
 })
 ```
 
+## Plugins
+
+TODO: `pinia.use()` + `interface PiniaCustomProperties` for TS
+
+## Subscribing to changes
+
+TODO: `store.$subscribe()`
+
 ## Related
 
 ## License