Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timing not working in miragejs server instance #2458

Open
Lukortech opened this issue Nov 3, 2022 · 1 comment
Open

Timing not working in miragejs server instance #2458

Lukortech opened this issue Nov 3, 2022 · 1 comment

Comments

@Lukortech
Copy link

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
Copy link
Collaborator

This was fixed in this commit in mirageJS miragejs/miragejs@f68581a. It just hasnt been released yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants