The first brings in the proposed RestorableStateHolder from the Compose CL.
The second removes the requirement that the key type T be bundlable by using the compound key hash as the saver key instead (as I proposed in comments on that CL).
The third adds the shouldSave API proposed by Andrey Kulikov, and uses it to drop screens' states when navigating backwards.
This PR should not be merged as-is. It proves that these changes work, and serves as a test bed to see how they integrate with this library (spoiler: very cleanly).
The CI build will fail, but I manually verified that the sample app works as expected.
This PR has 3 commits:
RestorableStateHolder
from the Compose CL.T
be bundlable by using the compound key hash as the saver key instead (as I proposed in comments on that CL).shouldSave
API proposed by Andrey Kulikov, and uses it to drop screens' states when navigating backwards.This PR should not be merged as-is. It proves that these changes work, and serves as a test bed to see how they integrate with this library (spoiler: very cleanly).
The CI build will fail, but I manually verified that the sample app works as expected.