Use transient
parent
cb80c0651f
commit
0cf745e6d2
|
@ -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>();
|
||||
|
||||
|
|
Loading…
Reference in New Issue