一个可以帮助你检查项目中是否存在重复请求的工具。使用后会自动监听请求,当发现1秒内有发出多次相同的请求时,会toast提示并在控制台上打印请求信息。
import repeatRequestMinder from 'repeat-request-minder';
repeatRequestMinder();
也可以配置toast是否显示以及toast显示的时长(默认显示toast,时长为3秒)
repeatRequestMinder({
isShowToast: true,
toastTime: 10000
});
👤 Brady
- Github: @Brady
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator