Comments (3)
不能复现,是怎么调用的?
from miniprogram-network.
那cacheRequest应该怎么调用呢
from miniprogram-network.
一般就和request一样调用
import { cacheRequest } from "miniprogram-network";
cacheRequest({
url: API,
params: { id },
});
如果只想使用cache不使用其它库可以https://github.com/NewFuture/miniprogram-network/tree/master/cache
from miniprogram-network.
Related Issues (20)
- [cache] 缓存网络出错,请求没有重试
- 自定义超时(timeout) HOT 1
- 自定义retry 回调
- remove default queue in request/download/upload lib HOT 1
- miniprogram-request 库 get 的返回值与泛型定义不一致 HOT 2
- 全局拦截 HOT 1
- 不兼容wx.request的api? HOT 5
- 对于transformResponse能不能提供一下reject或者throw error的例子? HOT 2
- 请求超时时捕获异常的 errMsg 优化 HOT 4
- retry设置为0不起作用 HOT 3
- baseUrl增加备用域名 HOT 1
- miniprogram-network导致无法使用代码保护功能 HOT 1
- token支持 HOT 1
- http2支持 HOT 4
- miniprogram-network如何打包为单文件 HOT 1
- D D NS HOT 3
- 建议拉个群 HOT 3
- params 类型增强
- wx.uploadFile 自动反序列化
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miniprogram-network.