-
Notifications
You must be signed in to change notification settings - Fork 10
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
Use fs2.dom.Event[F]
and friends
#172
Conversation
Not too bad! |
@@ -146,37 +147,37 @@ private trait PropModifiers[F[_]](using F: Async[F]): | |||
Modifier.forSignalResource[F, Any, OptionSignalResourceModifier[F, Any, Any], Option[Any]]( | |||
_.values) { (m, n) => setPropOption(n, m.name, m.encode) } | |||
|
|||
final class EventProp[F[_], E, A] private[calico] (key: String, pipe: Pipe[F, E, A]): | |||
final class EventProp[F[_], A] private[calico] (key: String, pipe: Pipe[F, Any, A]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bye E
, hope we don't miss you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I think it wasn't needed even before, but I only realized when I did this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think this is an orthogonal change. It would bother me because I like to pretend Any
doesn't exist, but I see that we need that later on either way, because it helps us saving evil allocs ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try this
Based on:
Event
and friends fs2-dom#51Admittedly, the codegen is a bit hacked, but meh 😅
The changes in #168 ended up being very helpful for this change, because now we actually need to map from
dom.Event => fs2.dom.Event[F]
.