Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to return a reactive store (ref) that can be used for live updates on a page #471

Open
Rednas83 opened this issue Aug 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Rednas83
Copy link

Rednas83 commented Aug 4, 2024

Something like

<template>
 {{ counter }}
</template>
<script setup>
  // const await storage.getItem("counter") // Only returns the value
  const counter = useStore('counter') // QUESTION: How to return a reactive store that can be used for live updates on a page
</script>

Is it possible or can it be added for convenience?

@Rednas83 Rednas83 added the enhancement New feature or request label Aug 4, 2024
@Rednas83 Rednas83 changed the title How to return a reactive store that can be used for live updates on a page How to return a reactive store (ref) that can be used for live updates on a page Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant