Use transient

pull/29/head
James Montemagno 2022-01-24 10:51:09 -08:00
parent cb80c0651f
commit 0cf745e6d2
1 changed files with 3 additions and 3 deletions

View File

@ -5,14 +5,14 @@ public static class ViewModelExtensions
public static MauiAppBuilder ConfigureViewModels(this MauiAppBuilder builder)
{
builder.Services.AddSingleton<CategoriesViewModel>();
builder.Services.AddSingleton<CategoryViewModel>();
builder.Services.AddTransient<CategoryViewModel>();
builder.Services.AddSingleton<DiscoverViewModel>();
builder.Services.AddSingleton<EpisodeDetailViewModel>();
builder.Services.AddTransient<EpisodeDetailViewModel>();
builder.Services.AddSingleton<EpisodeViewModel>();
builder.Services.AddSingleton<ListenLaterViewModel>();
builder.Services.AddSingleton<SettingsViewModel>();
builder.Services.AddSingleton<ShellViewModel>();
builder.Services.AddSingleton<ShowDetailViewModel>();
builder.Services.AddTransient<ShowDetailViewModel>();
builder.Services.AddSingleton<ShowViewModel>();
builder.Services.AddSingleton<SubscriptionsViewModel>();