Miragejs schafft das Timing
import { createServer } from "miragejs";
createServer({
timing: 5000, // Response time: 5000ms
routes() {
this.namespace = "api";
this.get("/products", () => {
return ["MacBook", "iPad"];
});
}
});
KostasX