Skip to content

[Blazor] Inject different services during prerendering #8422

Closed
@Andrzej-W

Description

@Andrzej-W

I don't know if prerendering already works in Blazor 0.9 on WebAssembly but we should be able to use different services during prerendering and in the client app. The most obvious example:

  • during prerendering we can use direct database access to read information
  • in the client app we have to use WebAPI calls

I would like to create a common interface (repository pattern) and two different implementations to optimize server performance.

There is an issue related to prerendering and JSInterop already filled in: #8404 Maybe both problems can be solved at the same time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions