You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix a uniqueId related problem in unit tests (airbnb#258)
* Fix a uniqueId related problem in unit tests
In unit tests, `onCreate` is never called. That means that the lateinit will never be instantiated. Instead, make `persistedViewId` really the persisted one (not with a default). That means it is nullable. Then when `mvrxId` is accessed for the first time, we generate the id.
* Introduced `MvRxViewId` to encapsulate id save/restore logic and provide re-usability
* Simplify lazy value logic in MvRxViewId
0 commit comments