From 0cf745e6d2beb14fc8feb75393098fe3a0614f9e Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Mon, 24 Jan 2022 10:51:09 -0800 Subject: [PATCH] Use transient --- src/Mobile/ViewModels/ViewModelExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mobile/ViewModels/ViewModelExtensions.cs b/src/Mobile/ViewModels/ViewModelExtensions.cs index c71b623..a9570d3 100644 --- a/src/Mobile/ViewModels/ViewModelExtensions.cs +++ b/src/Mobile/ViewModels/ViewModelExtensions.cs @@ -5,14 +5,14 @@ public static class ViewModelExtensions public static MauiAppBuilder ConfigureViewModels(this MauiAppBuilder builder) { builder.Services.AddSingleton(); - builder.Services.AddSingleton(); + builder.Services.AddTransient(); builder.Services.AddSingleton(); - builder.Services.AddSingleton(); + builder.Services.AddTransient(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); - builder.Services.AddSingleton(); + builder.Services.AddTransient(); builder.Services.AddSingleton(); builder.Services.AddSingleton();