Updating UI in the scaffolded authentication pages is not working #61825
Replies: 3 comments
-
With streaming rendering enabled, you can't set headers after the response has started. One thing you could try is turning off streaming rendering and adding a JavaScript listener for the form's Could you please let us know if this solution fits your needs? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hey @MackinnonBuck, makes complete sense what you've said. I'll take a look and try playing with it and get back to you! Thanks. |
Beta Was this translation helpful? Give feedback.
-
Moving this to a discussion. If you think there's a product issue here, please feel free to open a new issue, @emimontesdeoca. |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
Describe the bug
Hey!
I might be using this wrongly but I have not found any kind of documentation about this, which I think is related to the SSR/StreamRendering not being enabled for this view.
So far the issue for me is that I have my login page which I want to update while performing the login process, basically just standard spinner in the button, nothing fancy.
The code is the following:
If you take a look at this piece:
Ideally this should just update the button and display either one of them but it's not doing anything.
AFAIK from reading everywhere, this seems to be intended, I'd like to know how could we update the login page so I can add some magic in the UI.
I've tried to set add StreamRendering but then the authentication is broken and get's the following error:
@attribute [StreamRendering]
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
9.0.300-preview.0.25177.5
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions