You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note I'm using the last tuple element for the data, when patter matching I use a wildcard on it. Then I destructure the handler selections to access data
.with([Foo.A,Bar.A,__],([_foo,_bar,data])=>{// do something with data}).with([Foo.A,Bar.B,__],([_foo,_bar,data])=>{// do something with data})
The only workaround with select I know is to list all data's properties
Describe alternatives you've considered
A workaround I'm using is to move the selection outside the pattern matching, but this doesn't act as a wildcard and only works if multiple cases have same data
Consider an input made of tuples + enums
Note I'm using the last tuple element for the data, when patter matching I use a wildcard on it. Then I destructure the handler selections to access
data
The only workaround with
select
I know is to list alldata
's propertiesDescribe the solution you'd like
It would be great to select the wildcarted element
Describe alternatives you've considered
A workaround I'm using is to move the selection outside the pattern matching, but this doesn't act as a wildcard and only works if multiple cases have same
data
The text was updated successfully, but these errors were encountered: