Gun-Vue docs v0.21.4 • Docs
Gun-Vue docs v0.21.4 / Posts / usePosts
Function: usePosts()
usePosts(
tag
):object
Use a list of immutable data from a #tag
Parameters
• tag: string
Returns
object
backlinks
backlinks:
object
countBacklinks
countBacklinks:
ComputedRef
<number
>
countPosts
countPosts:
ComputedRef
<number
>
downloading
downloading:
Ref
<boolean
,boolean
>
downloadPosts
downloadPosts:
Function
posts
posts:
object
uploadPosts
uploadPosts:
Function
Example
ts
import { usePosts } from '@gun-vue/composables'
const { posts, timestamps, count, uploadPosts, downloadPosts} = usePosts('MyTag')