Skip to content

Static Pages should support Interactive components fully #57709

@garrettlondon1

Description

@garrettlondon1

Summary

Currently, there is a very ugly workaround if you want to support interactive components on static pages, where you have to wrap the interactive components in a parent component if you need to pass in non-serializable child content

Motivation and goals

Make it easier to consume interactive components from static pages
image

Documentation explains the serializable parameters, but why is this the case? Blazor should know that a component is InteractiveServer, and it should support sending child content to interactive server components on static pages

Examples

Cannot pass the parameter 'ChildContent' to component - main error received

image

Detailed design

Static pages should be able to support interactive components, even if you nest them with non-serializable content

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions