Solution: API States
Here’s the solution of how to add API states to an API request call.
We'll cover the following...
Solution
This challenge required you to show different content based on the current API state. Below are the required changes:
For the src/components/DisplayPosts.vue
file:
-
Add a new state called
fetchPostsStatus
with the value set toIDLE
. The ...