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

Add ability to create refs for Cloud Storage #15

Open
deptyped opened this issue Feb 10, 2024 · 0 comments
Open

Add ability to create refs for Cloud Storage #15

deptyped opened this issue Feb 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@deptyped
Copy link
Owner

deptyped commented Feb 10, 2024

<script lang="ts" setup>
import { useWebAppCloudStorage } from 'vue-tg'

const valueRef = useWebAppCloudStorageItem<T>("some-key", "initial value", {
  writeDebounce: 500, // ms
  serializer: {
    read(raw: string): T
    write(value: T): string
  },
  onError: (error: unknown) => void,
})

valueRef.value = "another value"
</script>
@deptyped deptyped added the enhancement New feature or request label Feb 19, 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