Skip to content
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

Multiple backends #42

Closed
markknol opened this issue May 8, 2019 · 2 comments
Closed

Multiple backends #42

markknol opened this issue May 8, 2019 · 2 comments

Comments

@markknol
Copy link

markknol commented May 8, 2019

Me: I was wondering, is it possible to have multiple renderers in the same build. eg. lets say I want half of the app coconut.vdom and the other half coconut.pixi or something?
You: No

...

Me: you mean not at all, I mean also not when there are separate roots?
You: the problem is that currently, there are types such as RenderResult which tend to be quite useful, but if you want to have multiple backends, that won't fly
You: for me it's not that hard, but presenting a nice api to the user will be tricky ^^
you'll have to write extends View<js.html.Node> and extends View<pixijs.Sprite> and what not
Me: 💡 yeah or extends coconut.vdom.View and extends coconut.pixi.View. but I understand this is tricky and opens box of lesser nice api
You: 💡 actually, that's pretty cool
You: can you please dump that in a ticker for me?

There you go! 🚀

@back2dos
Copy link
Member

Works with current HEAD.

@markknol
Copy link
Author

Me: 💡 actually, that's pretty cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants