Skip to content

Timing not working in miragejs server instance #2458

@Lukortech

Description

@Lukortech

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions