We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这里的when判断应该是判断T的类型而不是判断default的类型吧?
比如这样使用,初始化的值是null,进来when判断就会有问题 mutableDataSaverStateOf<UserInfoEntity?>( DefaultDataSaverMMKV, "userInfo", null, async = false, )
mutableDataSaverStateOf<UserInfoEntity?>( DefaultDataSaverMMKV, "userInfo", null, async = false, )
The text was updated successfully, but these errors were encountered:
是应该判断T,不过判断T怎么写呢;你这个例子会走到被注册的 typeConverters 里面,到是可以正确执行
typeConverters
Sorry, something went wrong.
No branches or pull requests
这里的when判断应该是判断T的类型而不是判断default的类型吧?
比如这样使用,初始化的值是null,进来when判断就会有问题
mutableDataSaverStateOf<UserInfoEntity?>( DefaultDataSaverMMKV, "userInfo", null, async = false, )
The text was updated successfully, but these errors were encountered: