diff options
Diffstat (limited to 'components/PostList/PostList.vue')
-rw-r--r-- | components/PostList/PostList.vue | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/components/PostList/PostList.vue b/components/PostList/PostList.vue index 2d1bb2d..781099f 100644 --- a/components/PostList/PostList.vue +++ b/components/PostList/PostList.vue @@ -15,21 +15,18 @@ export default { required: false } }, - async asyncData() { - return { - loading: process.client, - rawPosts: process.client ? undefined : k.getPosts() - } - }, data() { return { loading: true, - rawPosts: [] + rawPosts: undefined } }, mounted() { if (process.client && this.rawPosts === undefined) { this.loadPostsClient() + } else { + this.rawPosts = k.getPosts() + this.loading = false } }, computed: { |