Yo! I'm using Conductor and would like to instanti...
# android
p
Yo! I'm using Conductor and would like to instantiate a Controller with a lambda that expose a field in the enclosing Activity like this:
Copy code
class AnActivity: Activity {
  val state: State
  
  oncreate() {
    ConductorController(savedInstanceState, { state }) /* <- will this introduce a memory leak? */
  }    
}

class ConductorController(bundle: Bundle?, () -> State) {/*...*/
}