Gun-Vue docs v0.21.4 • Docs
Gun-Vue docs v0.21.4 / Post / usePost
Function: usePost()
usePost(
options
):object
An interface to manage a post
Parameters
• options
• options.hash: string
= ""
• options.loadMedia: boolean
= true
Returns
object
download
download:
Function
downloading
downloading:
Ref
<boolean
,boolean
>
post
post:
PostContent
Example
ts
const post = usePost({ tag: 'tag', hash: postHash })