Skip to content

Commit

Permalink
React Legacy. Remove asDynamic() usages (#2449)
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Nov 24, 2024
1 parent bfb2a2c commit 8a5cb82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kotlin-react-legacy/src/jsMain/kotlin/react/Props.ext.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package react

import js.reflect.unsafeCast

inline var Props.ref: Ref<*>?
@Deprecated("Write-only property", level = DeprecationLevel.HIDDEN)
get() = error("")
set(value) {
asDynamic().ref = value
unsafeCast<PropsWithRef<Nothing>>(this).ref = value
}

0 comments on commit 8a5cb82

Please sign in to comment.