# Reduce get() usage outside of tests

`get()` returns current value, and it is a good solution for tests.

But it is better to use `useStore()`, `$store`, or `Store#subscribe()` in UI to subscribe to store changes and always render the actual data.

```diff
const { userId } = $profile.get()
const { userId } = useStore($profile)
```

***

*Imported from the [Nano Stores README](https://github.com/nanostores/nanostores/blob/1.5.5/README.md#reduce-get-usage-outside-of-tests) for version 1.5.5. Improve this page there.*
