-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Blazor SSR form submission issue
When submitting a form on a page, OnInitialized and OnParametersSetAsync execute as if the page had just opened before executing the method specified by OnInvalidSubmit.
This causes the logic in OnInitialized and OnParametersSetAsync to be executed multiple times. (For example, for a DataList + QueryCondition form, when the query form is submitted, the query logic is executed first, and then the query condition is processed. (More problematic if there are multiple forms on the page).
Is there a way to recognize POST operations so that POST operations and objects are recognized in OnInitialized or OnParametersSetAsync and the logic is processed as required?
Expected Behavior
When the form is submitted, it is desirable to identify whether the request is GET or POST in OnInitialized or OnParametersSetAsync.
Something like the Razor Pages handler to make it explicit.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8.0 -rc2
Anything else?
No response