diff --git a/README.md b/README.md index f44c3e2..1cdaa3d 100644 --- a/README.md +++ b/README.md @@ -145,16 +145,15 @@ not it's value). ### Reading stores outside of Svelte files -The `$` prefix Svelte notation to access store values in only +The `$` prefix Svelte notation to access store values is only available inside Svelte files. To directly access the instantiated values in pure javascript library without subscribing to the store, -you can use special getter on the library abstract helper: +you can use a special getter on the library abstract helper: ```js // this is not a Svelte file but a standard JavaScript file import { defaultEvmStores } from 'svelte-web3' - if (defaultEvmStores.$selectedAccount) { // do something if store selectedAccount is non null @@ -162,7 +161,7 @@ if (defaultEvmStores.$selectedAccount) { } ``` -### Forcing a disconnect (and the remove all listeners) +### Forcing a disconnect (and removing all listeners) Simply call the function `disconnect` directly on the on the library abstract helper: @@ -254,7 +253,7 @@ discussions in our [Discord](https://discord.gg/7yXuwDwaHF). import { Balance } from 'svelte-web3/components' -

balance = +

balance =

``` @@ -309,20 +308,17 @@ if you want to be listed in this section. ### Svelte basic example (based on rollup template) -Please check [`examples/svelte-app-template-web3` in github] -(https://github.com/clbrge/svelte-web3/tree/master/examples/svelte-app-template-web3). +Please check [`examples/svelte-app-template-web3` in github](https://github.com/clbrge/svelte-web3/tree/master/examples/svelte-app-template-web3). Contains demos to use the default store and multi stores. ### SvelteKit basic example -Please check [`examples/sveltekit-app-template-web3` in github] -(https://github.com/clbrge/svelte-web3/tree/master/examples/sveltekit-app-template-web3). +Please check [`examples/sveltekit-app-template-web3` in github](https://github.com/clbrge/svelte-web3/tree/master/examples/sveltekit-app-template-web3). ### Sapper basic example (based on webpack template) -Please check [`examples/sapper-app-template-web3` in github] -(https://github.com/clbrge/svelte-web3/tree/master/examples/sapper-app-template-web3). +Please check [`examples/sapper-app-template-web3` in github](https://github.com/clbrge/svelte-web3/tree/master/examples/sapper-app-template-web3). Please check `examples/sapper-app-template-web3` in github. diff --git a/package.json b/package.json index 403aa6e..47a2375 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "svelte": "^3.0.0", - "svelte-proxied-store": "^0.2.0" + "svelte-proxied-store": "^1.0.0" }, "devDependencies": { "eslint-plugin-svelte3": "^3.2.1",