Timing not working in miragejs server instance
Lukortech opened this issue · 1 comments
Lukortech commented
Bug
Expected behaviour:
this.timing = 10000
Slows down and allows me to get data with a bit of "loading".
Current behaviour:
Responds with data right away.
routes() {
this.namespace = "api"
this.timing = process.env.NODE_ENV === "development" ? 9999999 : 400
this.get(/users, (schema)=>schema.all("user")) // returns the list right away
}
I've tried:
I've checked and console.logged
the value that goes with the server and it's proper (9999999).
cah-brian-gantzler commented
This was fixed in this commit in mirageJS miragejs/miragejs@f68581a. It just hasnt been released yet.