Replies: 4 comments 1 reply
|
That is very odd. Stranger still that if you put a |
1 reply
|
I'm reaching out for some help on discord. It looks like someone else had this question before and there was no resolution 🫤 |
0 replies
|
I also posted on stack overflow, hopefully someone can help us! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello!
I was messing around with compose and discovered something interesting. The type definitions for
composeare almost identical topipe(only the function order is reversed), but it doesn't seem to behave the same. Consider these compositions, one withcomposeand one withpipe:pipeis fine with this, andpoo2is correctlystring | number. On the other hand,composeis getting confused and sayspooisunknown. Additionally, there's a big red squiggle underR.nth(1)complaining about theunknown.Given that the type definitions are almost identical, I'm not sure why
composewouldn't work the same aspipe. Any idea what's going on here?All reactions