+ Could not fetch Author +
++ Written by {{ $fetchState.pending ? '...' : user.name }} +
+ + + diff --git a/examples/new-fetch/layouts/default.vue b/examples/new-fetch/layouts/default.vue new file mode 100644 index 0000000000..07cb60a9a1 --- /dev/null +++ b/examples/new-fetch/layouts/default.vue @@ -0,0 +1,28 @@ + ++ Error while fetching posts: {{ error }} +
+ + +{{ post.body }}+
+
+
+ Fetching... +
+{{ team }}+ +
+ Fetching... +
+{{ team }}+
+ Fetching... +
+{{ team }}+
+ Fetching for 1 second +
+{{ team }}+
+ Fetching... +
++ {{ $fetchState.error.message }} +
+{{ team }}+
+ Fetching... +
+{{ team }}+