-
傻傻分不清楚,555
- `import request from umi-request `
- `import {useRequest} from 'umi' `
- `import {request} from umi `
-
"ahooks": "^3.7.5",
"next": "13.1.6",
**BUG**
在nextjs 中通过useWebSocket的options中使用onOpen, onMessage,onClose,onError,皆不生效;
**临时解决方案:**
使用useWebSocket 返回的 webSocketIns 通过 addEventListener 监听 'open'…
-
目前isNoMore为false时,调用loadMore会没有效果。
而在某些场景需要强制加载更多数据。
比如时间正序排列的评论列表,当前没有更多数据了。
然后用户提交了一条数据,就需要刷新后面的数据,但是目前来看是不支持的。
-
场景描述:
使用 fullScreenContainer 作为最外层的节点,没有对它做长宽的css设置。
页面内排版使用像素进行布局。
这种情况下,在1920x1080分辨率,然后缩放比例为 100% 的屏幕上显示正常。
但是,在缩放比例为 150% 的屏幕上布局会错乱。ps. 戴尔电脑出厂推荐(默认)的缩放比例是 150%。
如果手工将缩放比例调整为 100% 是正常的。
新特征…
-
I haven't found a way to make NchanSubscriber.js works in a React Webapp but I can make "vanilla" websocket works. Is it my fault or NChanSubscriber.js is written in a incompatible way for using in Re…
-
[This sandbox is worth more than all that could have been written here](https://codesandbox.io/s/quirky-wilbur-bcswp?file=/src/App.js)
-
Currently every hook's code contains transpiled helpers like `__awaiter`, `__generator`, `__assign`, `__rest`, `__read` and others, which can amout to more code than hook itself.
It would be great…
-
类似于 VueUse 的 [useManualRefHistory](https://vueuse.org/core/useManualRefHistory/)
我用已有的 [useHistoryTravel](https://ahooks.js.org/zh-CN/hooks/use-history-travel) 简单实现了一下
```ts
import { useHistory…
Debbl updated
10 months ago
-
**What is the current behavior?**
![image](https://user-images.githubusercontent.com/33021960/138625477-89c627b1-0b4b-440b-821f-f1e8b6255856.png)
**Steps to reproduce it and if possible a minimal …
-
像是钉钉缓存相关的JSAPI,或者ahooks官网说的IndexDB,都不是在当前宏事件里可以返回结果的。所以希望getCache可以支持异步函数。