未验证 提交 ba953aaa 编写于 作者: T Tim Lai 提交者: GitHub

docs: update plugin api component for failSilently (#5953)

上级 26fb573c
......@@ -214,6 +214,13 @@ const NeverShowInfoPlugin = function(system) {
}
```
You can use `config.failSilently` if you don't want a warning when a component doesn't exist in the system.
Be mindful of `getComponent` arguments order. In the example below, the boolean `false` refers to presence of a container, and the 3rd argument is the config object used to suppress the missing component warning.
```javascript
const thisVariableWillBeNull = getComponent("not_real", false, { failSilently: true })
```
#### Wrap-Actions
Wrap Actions allow you to override the behavior of an action in the system.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册