Skip to content

Blazor static SSR multiple forms and "transient" data #51162

Closed
@jonhilt

Description

@jonhilt

ref: #49340 (comment)

I tried implementing a similar approach to this, with some data being loaded via an external API and ran into some unexpected behaviour.

Here's a minimal repro:
https://github.com/jonhilt/BlazorNet8Testing/blob/master/RTMTest/Components/Pages/Home.razor

In this example there's one form which enables the user to search some arbitrary data.

Then the results load and they are rendered inside another form, for the purposes of enabling interaction with each result (but still using forms and static SSR).

At the moment, when you click a button in the search results, the form is submitted, but I was hoping the search results would remain present on the screen.

As it is, they disappear as soon as you try to interact with any of the items.

(this is with data-enhance enabled).

ssrsearch

dotnet: 8.0.100-rtm.23503.6

Originally posted by @jonhilt in #49340 (comment)

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