private fun loadCreditCards() { lifecycleScope.launch(Dispatchers.IO) { val creditCards = requireContext().components.core.autofillStorage.getAllCreditCards() lifecycleScope.launch(Dispatchers.Main) { store.dispatch(AutofillAction.UpdateCreditCards(creditCards)) } } }
Fetches all the credit cards from the autofill storage and updates the [AutofillFragmentStore] with the list of credit cards.