From: Eduardo San Martin Morote Date: Tue, 23 Feb 2021 13:53:41 +0000 (+0100) Subject: docs: typo state X-Git-Tag: v2.0.0-alpha.8~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=905994e27f7b27a6b05999375934f12878315e21;p=thirdparty%2Fvuejs%2Fpinia.git docs: typo state --- diff --git a/README.md b/README.md index 248867c5..50d506c5 100644 --- 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