From 6965a8eb24dc3d22723cfd45a164cee8efbc23f9 Mon Sep 17 00:00:00 2001 From: Jeffrey Biles Date: Tue, 17 Mar 2020 12:56:01 -0700 Subject: [PATCH] MIrage + async fetch + suspense --- package.json | 1 + src/App.vue | 9 +- src/components/InboxScreen.vue | 25 +---- src/main.js | 30 ++++++ yarn.lock | 171 +++++++++++++++++++++++++++++++++ 5 files changed, 214 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index c35b14e..3dc1797 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@vue/cli-plugin-babel": "^4.2.0", "@vue/cli-service": "^4.2.0", "@vue/compiler-sfc": "^3.0.0-alpha.9", + "miragejs": "^0.1.35", "vue-cli-plugin-vue-next": "^0.0.4", "vue-template-compiler": "^2.6.11" } diff --git a/src/App.vue b/src/App.vue index 3d89fbf..6f37da2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,13 @@ diff --git a/src/components/InboxScreen.vue b/src/components/InboxScreen.vue index de637c2..1ba425b 100644 --- a/src/components/InboxScreen.vue +++ b/src/components/InboxScreen.vue @@ -6,28 +6,11 @@