File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,17 @@ npm install fastify-override --save-dev
18
18
19
19
| Plugin Version | Fastify Version | Node Versions |
20
20
| ----------------| :---------------:| ---------------|
21
- | 1.x | 4.x | 18, 20 |
21
+ | 1.x | 4.x | 18, 20, 21 |
22
22
23
23
## Usage
24
24
25
25
This plugin allows you to override specific plugins, decorators and hooks within the plugin hierarchy. This can happen
26
26
from any level within the hierarchy, and you can also register this plugin multiple times. But as soon as the plugin is
27
27
to be used, the register call must be awaited so that all subsequently added plugins, decorators and hooks are considered.
28
28
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
+
29
32
``` js
30
33
31
34
app .decorate (' foo' , ' bar' )
You can’t perform that action at this time.
0 commit comments