Skip to content

v6.2.0

Choose a tag to compare

@chawes13 chawes13 released this 26 Jun 19:39

Added delay option to createStubRequest to facilitate simulating a slow API. This will help developers test loading states while developing off of stubbed requests before an endpoint is ready.

Example:

export const fetchUser = createStubRequest(
  'FETCH_USER',
  { id: 1, name: "John Doe" },
  { delay: 500 }
)