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

Support to delay mock api #351

Open
afc163 opened this issue Aug 3, 2017 · 5 comments
Open

Support to delay mock api #351

afc163 opened this issue Aug 3, 2017 · 5 comments

Comments

@afc163
Copy link
Contributor

afc163 commented Aug 3, 2017

https://www.npmjs.com/package/express-delay

For debugging loading situation.

@sorrycc
Copy link
Owner

sorrycc commented Aug 11, 2017

没想到好的整合方案,有啥建议吗?

@vipcxj
Copy link

vipcxj commented Aug 11, 2017

storybook#435 学习他们的做法,直接添加一个router的配置接口,这样想怎么use中间件都可以了

@afc163
Copy link
Contributor Author

afc163 commented Aug 12, 2017

@nikogu

@prionkor
Copy link

Is there any way to simulate delay on mock api? I am currently using setTimeout() which works but would be great if roadhog api supports it natively.

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

5 participants
@sorrycc @afc163 @prionkor @vipcxj and others