[Bug?]: Same plugin instance being passed to multiple routers can cause problems #1277
Closed
2 tasks done
Labels
bug
Something isn't working
Duplicates
Latest version
Current behavior 😯
Vite plugins some times use factory functions and keep state inside the function scope to pass it between hooks. Solid-Start passing the same plugin instaces to multiple routers can cause unexpected problems.
Currently this is avoidable by using a function for plugins instead of an array.
Expected behavior 🤔
Not to pass the same instance to multiple routers.
Steps to reproduce 🕹
Steps:
Watch the items count increase between router builds.
Context 🔦
Came across this on nksaraf/vinxi#108 (comment) with unplugin-imagemin where one problem (3rd point) is caused by this.
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: