docs: clarify empty patches array behavior (#610)

Co-authored-by: Ven <vendicated@riseup.net>
main
Dossy Shiobara 2 years ago committed by GitHub
parent 87e46f5a5a
commit 265547213c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,6 +26,10 @@ export default definePlugin({
name: "Your Name", name: "Your Name",
}, },
], ],
// Delete `patches` if you are not using code patches, as it will make
// your plugin require restarts, and your stop() method will not be
// invoked at all. The presence of the key in the object alone is
// enough to trigger this behavior, even if the value is an empty array.
patches: [], patches: [],
// Delete these two below if you are only using code patches // Delete these two below if you are only using code patches
start() {}, start() {},

Loading…
Cancel
Save