-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate the svelte component and the js wrapper #372
Comments
I'm not entirely sure what you mean, do you mean to move the stuff related to the |
The main component has updateProps and other things that are required for vanilla js. This can be moved to a separate component. In addition, it has a size of 500 lines, it is better to reduce it somehow. |
Blocked by #373 |
Yeah, that can be interesting. It would be neat to separate the stuff related to the Is this something you would like to try out? |
I think you can just export the svelte component and the wrapper component separately |
It would be nice to bring all the functionality that is needed for use without svelte into a separate component that will be imported from js.
And the pure svelte component will be imported from svelte.
You also need to make native events in the svelte component (and pass them above), and use callbacks in the wrapper, etc.
The text was updated successfully, but these errors were encountered: