spxbhuhb / adaptive

Consolidated full-stack application development library for Kotlin
https://adaptive.fun
Apache License 2.0
3 stars 0 forks source link

[plugin] binding does not recognise adat companion #82

Open toth-istvan-zoltan opened 1 week ago

toth-istvan-zoltan commented 1 week ago

This statement throws a runtime error "missing adat companion". The reason is that the plugin does not recognise this form and does not set the companion in the binding.

val userMode = autoInstance(sidebarState)?.userMode

Workaround:

val userMode = autoInstance(sidebarState)

if (userMode?.mode == SidebarUserMode.Closed) {