Skip to content

How to keep reactivity when passing props to a Solid component from a third party that's dynamically imported (as a plugin)? #1751

Answered by atk
AlexErrant asked this question in Q&A
Discussion options

You must be logged in to vote

The problem here is that the plugin is using it's own instance of solid, which breaks reactivity.

You need to find a way to provide the same instance of solid to your app and to the plugins. The only way I can think of right now is to use external in the rollup options of vite: https://rollupjs.org/configuration-options/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexErrant
Comment options

Answer selected by AlexErrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants