diff options
Diffstat (limited to 'examples/with-nanostores/src/components/AdminsSvelte.svelte')
-rw-r--r-- | examples/with-nanostores/src/components/AdminsSvelte.svelte | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/with-nanostores/src/components/AdminsSvelte.svelte b/examples/with-nanostores/src/components/AdminsSvelte.svelte index a98444b4f..c6125b53e 100644 --- a/examples/with-nanostores/src/components/AdminsSvelte.svelte +++ b/examples/with-nanostores/src/components/AdminsSvelte.svelte @@ -1,10 +1,8 @@ <script> - import { getValue } from 'nanostores' - import { users } from '../store/users.js'; import { counter, increaseCounter, decreaseCounter } from '../store/counter.js'; - const list = getValue(users).filter(user => user.isAdmin); + const list = users.get().filter((user) => user.isAdmin); </script> <h1>Svelte</h1> |