소스 검색

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

bubble
Tim Lai 4 년 전
committed by GitHub
부모
커밋
ba953aaa91
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. +7
    -0
      docs/customization/plugin-api.md

+ 7
- 0
docs/customization/plugin-api.md 파일 보기

@@ -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.


불러오는 중...
취소
저장