Replies: 1 comment
-
(Imo) Everything is a plugin (I have written MANY -- some are public if you need a ref). There's a distinct difference (afaik) between using a plugin wrapped by "fastify-plugin" and one that is not. Make anything/everything a plugin but be discerning about if/when you wrap with fastify-plugin. You can always wrap a fp plugin with a non-fp plugin to add a sublayer/context/thingy so that a fp plugin is contained. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys,
I'm approaching fastify and plugins are very useful but I would like to understand when to use them and when they are not needed.
Two examples:
Some considerations:
So guys, in conclusion, what's for you a plugin? Which example files do you think should be plugins and which ones do you just import?
Thanks to all! <3
Beta Was this translation helpful? Give feedback.
All reactions