resaca
resaca copied to clipboard
hiltViewModelScoped returns new viewModel with old bundle argument on key change
i have following VM:
val viewModel: TorrentDetailsViewModel = hiltViewModelScoped(
key = hash, defaultArguments = bundleOf(TorrentDetailsViewModel.HASH_KEY to hash)
)
After composable is recomposed with new hash, new viewModel is returned, but bundle hash value is old.