feat: introduce lru cache for requests
This commit is contained in:
parent
6b3a14cf1e
commit
a94781df83
13 changed files with 90 additions and 39 deletions
|
@ -30,8 +30,7 @@ function onclick(e: MouseEvent) {
|
|||
}
|
||||
|
||||
function go() {
|
||||
// cache data
|
||||
useNuxtApp().payload.data[`status-${status.id}`] = status
|
||||
cacheStatus(status)
|
||||
router.push(getStatusPath(status))
|
||||
}
|
||||
|
||||
|
@ -85,7 +84,7 @@ const timeago = useTimeAgo(() => status.createdAt, {
|
|||
</div>
|
||||
</template>
|
||||
</AccountInfo>
|
||||
<StatusReplyingTo :status="status" ml5 mt--1 />
|
||||
<StatusReplyingTo v-if="status.inReplyToAccountId" :status="status" ml5 mt--1 />
|
||||
<div pl15>
|
||||
<StatusBody :status="status" />
|
||||
<StatusMedia
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue