mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
docs(📖): improve useModal FAQ
This commit is contained in:
parent
7b9a79401f
commit
7f8957eb9a
@ -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.
|
||||
|
||||
|
@ -96,7 +96,7 @@ message.config({
|
||||
|
||||
## FAQ
|
||||
|
||||
### 为什么 message 不能获取 context、redux 的内容?
|
||||
### 为什么 message 不能获取 context、redux 的内容和 ConfigProvider 的 `locale/prefixCls` 配置?
|
||||
|
||||
直接调用 message 方法,antd 会通过 `ReactDOM.render` 动态创建新的 React 实体。其 context 与当前代码所在 context 并不相同,因而无法获取 context 信息。
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -152,7 +152,7 @@ Modal.config({
|
||||
|
||||
## FAQ
|
||||
|
||||
### 为什么 Modal 方法不能获取 context、redux 的内容?
|
||||
### 为什么 Modal 方法不能获取 context、redux、的内容和 ConfigProvider `locale/prefixCls` 配置?
|
||||
|
||||
直接调用 Modal 方法,antd 会通过 `ReactDOM.render` 动态创建新的 React 实体。其 context 与当前代码所在 context 并不相同,因而无法获取 context 信息。
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -77,7 +77,7 @@ notification.config({
|
||||
|
||||
## FAQ
|
||||
|
||||
### 为什么 notification 不能获取 context、redux 的内容?
|
||||
### 为什么 notification 不能获取 context、redux 的内容和 ConfigProvider 的 `locale/prefixCls` 配置?
|
||||
|
||||
直接调用 notification 方法,antd 会通过 `ReactDOM.render` 动态创建新的 React 实体。其 context 与当前代码所在 context 并不相同,因而无法获取 context 信息。
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user