-
## FEATURE REQUEST
#### Please describe the feature you are requesting.
Choose a new front-end framework to maintain the web static resource.
The current front-end and back-end mixed architec…
-
### 🧐 问题描述
pro5的布局采用在app.tsx中导出一个layout的配置,而不是导出一个layout的组件,这样布局就不够灵活。希望可以像pro4一样,可以直接修改BasicLayout.tsx
### 💻 示例代码
```export const layout = ({
initialState,
}: {
initialState: {
set…
-
When the `useRequest` is used as part of the umi this below code causes the application to crash due to unhandled promise rejections: https://github.com/alibaba/hooks/blob/fd6d0a442cc8d569912cb2be6a8d…
-
### 🧐 问题描述
为什么不将useModel设计为数据持久化?
我觉得很多场景都会用到的,比如用户刷新了页面,数据应该还在才合理。
### 💻 示例代码
1. test model
```base
const [data, setData] = useState()
const eiditFuc = (c) => setData(c)
return {data…
-
初次渲染useInViewport获取的ref没有绑定对应的dom,后续绑定都无效
[https://codesandbox.io/s/eloquent-tdd-ldp7l?fontsize=14&hidenavigation=1&theme=dark](https://codesandbox.io/s/eloquent-tdd-ldp7l?fontsize=14&hidenavigatio…
-
### 🧐 问题描述
1、我的问题是我在打包过程中出现是否有影响呢?
(node:19608) [DEP_WEBPACK_CONFIGURATION_OPTIMIZATION_NO_EMIT_ON_ERRORS] DeprecationWarning: optimization.noEmitOnErrors is deprecated in favor of optimization.emit…
-
`onError` 只有两个参数,`error` 和 `param` , `error` 现在只返回 http status 层的错误。
目前拿不到 payload, 是否可以把 `data` 也加到onError 里?
e.g.
```js
api = useRequest(API.Login, {manual: true, onError: (error, param /*,da…
-
### 🧐 问题描述
本地打包没问题
但是在Jenkins上构建就一直报错
不知道是不是dockerfile写得有问题
不知道该从哪儿下手
💻 Jenkins报错提示
```
+ npm config set puppeteer_download_host=https://npm.taobao.org/mirrors
+ npm i --registry=https://…
-
### Versions
- dumi: 1.1.18
- node: 14.12.0
- npm: 6.14.8
### Steps to reproduce
新建一个文件夹下创建一个 index.tsx,内容复制[文档](https://d.umijs.org/zh-CN/guide/advanced#%E7%BB%84%E4%BB%B6-api-%E8%87%AA%E5…
-
### 🧐 问题描述
如题。
### 💻 示例代码
`in ./node_modules/@umijs/preset-dumi/lib/theme/hooks/useApiData.js
Module not found: Error: Can't resolve '@@/dumi/apis' in '/Users/wangshk/WebstormProjects/shippi…