-
Notifications
You must be signed in to change notification settings - Fork 9
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
A capability typeclass for making HTML components? #3
Comments
The |
As of #18, I think what is currently |
This is actually really hard, not necessarily technically, but in terms of sheer amount of work. Any interaction with the raw DOM will need |
It's still crazy ambitious, but fs2-dom is where this might happen. The Smart:tm: thing to do would be to whip up a custom blend of ScalablyTyped that does this wrapping automatically. See scala-js/scala-js-dom#487 (reply in thread). |
Another note about this. If we indeed go the wrapper route with something like class HtmlElement[F[_]](raw: dom.HTMLElement)(using F: Async[F]) That means that every node in our DOM tree will need another allocation. I am not really sure if that's a good idea. OTOH if we wrapped everything in The redesign work I'm doing for 0.2 will close this specific issue, but the wrapper issue persists. |
Actually, I guess we could do it via ops typeclasses 🤔 |
So we don't have to pass
Async
everywhere 🤔The text was updated successfully, but these errors were encountered: