Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

drop App generic for UsePrism method #101

Merged
merged 1 commit into from
Aug 9, 2022
Merged

Conversation

dansiegel
Copy link
Member

Description

When Prism for .NET MAUI began we anticipated requiring at least some code in the Application class and continuing to have a PrismApplication like we do with Prism for WPF, Uno, & Xamarin.Forms. As time has gone on and the .NET MAUI API has taken shape, and as Prism for .NET MAUI has grown to work with their updated API, there is no longer a need for a PrismApplication base class. As a result we really do not need to provide this as part of the bootstrapping for Prism.

BREAKING CHANGE

// Old Code
var builder = MauiApp.CreateBuilder();
builder.UsePrismApp<App>(prism => {
    // configure Prism
});

This will now change to:

var builder = MauiApp.CreateBuilder();
builder.UseMauiApp<App>()
    .UsePrism(prism => {
        // Configure Prism
    });

@dansiegel dansiegel added the enhancement New feature or request label Aug 9, 2022
@dansiegel dansiegel merged commit 270f1cc into master Aug 9, 2022
@dansiegel dansiegel deleted the update-builder-extension branch August 9, 2022 15:53
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant