TCACoordinators icon indicating copy to clipboard operation
TCACoordinators copied to clipboard

Deprecated scope(state:action:) in TCA 1.6

Open tesum opened this issue 1 year ago • 2 comments

Hello, my team write project on TCA 1.6 + TCACoordinators and we encountered a problem in the console: <decode: bad range for [%@] got [offs:410 len:801 within:0]>

It occurs because of the deprecated method in the TCARouter.swift:26. Can you please correct it?

tesum avatar Mar 01 '24 08:03 tesum

I have also try to fix that warning but with no luck ((

sdkdimon avatar Mar 01 '24 11:03 sdkdimon

Have a dirty fix for the issue. https://github.com/sdkdimon/TCACoordinators/tree/sdkdimon/experimental-tca-190 I suppose to have something cleaner needs to do a whole lib refactor, unfortunately. That's because deprecated and actual scope methods have a different params, in deprecated one we have closures and in new one there KeyPath for state and CaseKeyPath for an action params that can't be created in runtime(

sdkdimon avatar Mar 05 '24 13:03 sdkdimon

I believe this issue is now resolved since @rhysm94's changes in version 0.9.0.

johnpatrickmorgan avatar May 10 '24 09:05 johnpatrickmorgan