Skip to content

Custom setup strategy#124

Open
VitalyNikonorov wants to merge 2 commits into
frankiesardo:masterfrom
VitalyNikonorov:master
Open

Custom setup strategy#124
VitalyNikonorov wants to merge 2 commits into
frankiesardo:masterfrom
VitalyNikonorov:master

Conversation

@VitalyNikonorov

Copy link
Copy Markdown

Add functionality for adding custom strategy for restoring some specific fields.
It can be very useful when:

  • You wanna add nontrivial logic for new and old value. (e.g. while view was in recreating process some changes happened in presenter, and you do not want lose them)
  • With Kotlin lateinit fields (e.g. instance state has been saved before lateinit var has been initialised and then you don't want set null in lateinit var after restoring state)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant