docs(📖): improve useModal FAQ

This commit is contained in:
afc163 2020-11-12 11:17:34 +08:00
parent 7b9a79401f
commit 7f8957eb9a
6 changed files with 6 additions and 6 deletions

View File

@ -95,7 +95,7 @@ message.config({
## FAQ
### Why I can not access context, redux in message?
### Why I can not access context, redux, ConfigProvider `locale/prefixCls` in message?
antd will dynamic create React instance by `ReactDOM.render` when call message methods. Whose context is different with origin code located context.

View File

@ -96,7 +96,7 @@ message.config({
## FAQ
### 为什么 message 不能获取 context、redux 的内容?
### 为什么 message 不能获取 context、redux 的内容和 ConfigProvider 的 `locale/prefixCls` 配置
直接调用 message 方法antd 会通过 `ReactDOM.render` 动态创建新的 React 实体。其 context 与当前代码所在 context 并不相同,因而无法获取 context 信息。

View File

@ -147,7 +147,7 @@ Modal.config({
## FAQ
### Why I can not access context, redux in Modal.xxx?
### Why I can not access context, redux, ConfigProvider `locale/prefixCls` in Modal.xxx?
antd will dynamic create React instance by `ReactDOM.render` when call Modal methods. Whose context is different with origin code located context.

View File

@ -152,7 +152,7 @@ Modal.config({
## FAQ
### 为什么 Modal 方法不能获取 context、redux 的内容
### 为什么 Modal 方法不能获取 context、redux、的内容和 ConfigProvider `locale/prefixCls` 配置
直接调用 Modal 方法antd 会通过 `ReactDOM.render` 动态创建新的 React 实体。其 context 与当前代码所在 context 并不相同,因而无法获取 context 信息。

View File

@ -76,7 +76,7 @@ notification.config({
## FAQ
### Why I can not access context, redux in notification?
### Why I can not access context, redux, ConfigProvider `locale/prefixCls` in notification?
antd will dynamic create React instance by `ReactDOM.render` when call notification methods. Whose context is different with origin code located context.

View File

@ -77,7 +77,7 @@ notification.config({
## FAQ
### 为什么 notification 不能获取 context、redux 的内容?
### 为什么 notification 不能获取 context、redux 的内容和 ConfigProvider 的 `locale/prefixCls` 配置
直接调用 notification 方法antd 会通过 `ReactDOM.render` 动态创建新的 React 实体。其 context 与当前代码所在 context 并不相同,因而无法获取 context 信息。