Closed mluisbrown closed 3 years ago
Thanks for opening this! We were missing one of the signatures needed to feed input to the right metadata extractor function, sorry! Can you check out #48 to confirm it fixes your problem?
Thanks for the quick turnaround! I can confirm that #48 does fix the problem 👍
From
0.1.3
through0.5.0
the following test passes. From0.6.0
it fails.Apologies for the somewhat verbose scenario for the test, I wanted it to be as close to what we are using in our project as possible. We are using this extraction in a TCA
.scope().ifLet(then:else:)
so it's causing thethen
block to always be executed when it should be executing theelse
block.Our workaround for now is to hand code computed properties to determine if we are in a specific enum case.
It's possible this was not exactly the intended way of using CasePaths, but it is nevertheless, a regression.