Skip to content

Commit a40991e

Browse files
committed
add note
1 parent 875fe51 commit a40991e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@ npm install fastify-override --save-dev
1818

1919
| Plugin Version | Fastify Version | Node Versions |
2020
|----------------|:---------------:|---------------|
21-
| 1.x | 4.x | 18, 20 |
21+
| 1.x | 4.x | 18, 20, 21 |
2222

2323
## Usage
2424

2525
This plugin allows you to override specific plugins, decorators and hooks within the plugin hierarchy. This can happen
2626
from any level within the hierarchy, and you can also register this plugin multiple times. But as soon as the plugin is
2727
to be used, the register call must be awaited so that all subsequently added plugins, decorators and hooks are considered.
2828

29+
> Note: Only plugins that are not registered as promise are supported. `app.register(import('...'))` would result in
30+
> incorrect behaviour. If this occurs, the plugin will log a message accordingly.
31+
2932
```js
3033

3134
app.decorate('foo', 'bar')

0 commit comments

Comments
 (0)