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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
kotlin 2.1.0-RC 更新了一个新的特性:改进了泛型函数的过载解析
这可以让我们将在所有需要更新状态的场景下将过去的
SetValueFn<T>
转变成SetValueFn<SetterEither<T>>
这可以带来极高的灵活性
例如在UseCounterExample的示例代码中,我们可以这样写:
在 2.1.0 正式发布后,我将发布 ComposeHooks 2.1.0 的正式版本,届时之前标注移除的api都将被转为private,请及时迁移
Beta Was this translation helpful? Give feedback.
All reactions