MobileNativeFoundation / Store

A Kotlin Multiplatform library for building network-resilient applications
https://mobilenativefoundation.github.io/Store/
Apache License 2.0
3.18k stars 203 forks source link

[BUG]Not enough information to infer type variable Output #544

Closed Android1500 closed 1 year ago

Android1500 commented 1 year ago

whenever i try to create StoreBuilder its give me error in from().

Android1500 commented 1 year ago
Screenshot 2023-04-12 120947
matt-ramotar commented 1 year ago

Hey there - StoreBuilder takes a few generics. See https://github.com/MobileNativeFoundation/Store/blob/main/store/src/commonMain/kotlin/org/mobilenativefoundation/store/store5/StoreBuilder.kt#L76

Android1500 commented 1 year ago

Thanks I manage to work it but after first time its load data but i don't know what goes wrong but now app get crash whenever i try to load data from store

userRepo class

Screenshot 2023-04-12 120947

userviewModel class

Screenshot 2023-04-12 223401

userinfofragment class here i m try to get store data

Screenshot 2023-04-12 223933

in logs i just get loading and after that app crash

Android1500 commented 1 year ago

I fixed it it not relate to store5 it happen coz of server response