Demo

This is an example of who to use useFetch and pinia mocking api responses with json files while at the same time keeping the store in sync with any api request!

Warning

This does not work with useFetch 10 since they prevented the update of data on onFetchError

Main points in the solutions