Skip to content

Gun-Vue docs v0.21.4Docs


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: object

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')

Defined in

src/post/usePosts.js:36

MIT