for fun, i've been playing with mobx + react from ...
# announcements
d
for fun, i've been playing with mobx + react from kotlin-javascript: https://www.danneu.com/kobx/ right now the subclass implementer must call my goofy
activate()
method after defining its properties which evals javascript code that iterates through the properties to run
mobx.extendObservable(this, { key: initValue })
like
mobx.extendObservable(this, { counter: 0 })
. activate() impl: https://github.com/danneu/kobx/blob/master/src/com/danneu/kobx/mobx/hacks.kt
Copy code
class Store : Observable {
    var counter = 0
    var message = "Hello world"

    init { activate() }
}
Is there a way I can factor out that
init { activate() }
line?