Repository navigation
v6.2.0
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 }
)