Fixed
Status Update
Comments
se...@google.com <se...@google.com> #2
This is a Room feature request, not one for WorkManager.
se...@google.com <se...@google.com> #3
WorkManager needs to add a destructive 2 to 1 migration.
il...@google.com <il...@google.com> #4
The way we're thinking, if a downgrade isn't specified, it should be destructive by default in Room.
ap...@google.com <ap...@google.com> #5
i think it makes sense for downgrades, at least we can make this another flag.
Description
The keys() method in SavedStateHandle will always include keys for values set via the set() method, but it doesn't include the keys associated with a SavedStateProvider set via setSavedStateProvider() until after state is saved. If you wanted to remove all of the SavedStateProviders by iterating through the keys, whether it would work or not would depend on if state was already saved, which is kind of inconsistent and seems like a bug.