HF RL Explorer

OnModelClickListener with @CallbackProp delivers stale model reference after rebinding

OnModelClickListener with @CallbackProp delivers stale model reference after rebinding: a task in LegoFlow-SWE (Harbor dataset). When a user taps the view after a rebind, the wrapper uses the stale model reference, often leading to an IllegalStateException (“Holder was not bound” / “Object was not…

The task

When a user taps the view after a rebind, the wrapper uses the stale model reference, often leading to an `IllegalStateException` (“Holder was not bound” / “Object was not bound”) or, worse, silently passing the wrong model to the callback.

Part of Lego-X/LegoFlow-SWE.