Replies: 1 comment
-
I don't think what you're trying to do is possible. What do you expect to happen if there are multiple types that implement both |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I want to create an extractor that can be only applied to certain substates that implement a given trait.
I've made it as far to make checks pass on handler arguments, but applying the handler to router yields an error that root state does not implement that trait. I can't come up with a decent idea how to make the compiler happy.
I'll skip my miserable attempts and present you with ideal scenario:
I tried to play around with
FromRef<State>
from State extractor but I hit a wall, when I used a concrete type instead of generics on it.Help would be highly appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions