-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Investigate interaction between UseProxyToSpaDevelopmentServer
and UseEndpoints
#45903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@captainsafia, @JamesNK do you know if is this a newly added analyzer suggesting this change and is the proposed change truly equivalent to the original code? |
@rafaelfgx thanks for contacting us. You shouldn't need to call You can call |
@rafaelfgx I have tested without |
Hi @rafaelfgx. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@brunolins16 Did you try with |
I've stumbled across this issue as well I believe as can be read in my comment here: #42937 (comment) |
Nope, I was celebrating too soon... |
OK, while looking into this, I observed one buggy behavior with the analyzer which is that it will warn on code like: app.UseEndpoints(e => {}); Which is not desirable since the user might want to be explicitly invoking
Minimal hosting refers to the use of the
I'm not a total expert on the SPA templates here but I suspect it might have something to do with the order of the other middlewares in your application. Top-level invocations are working in the built-in Angular templates. |
I believe you are right. I am not expert as well but the call to Could be related to this discussion: #44244 @javiercn @mkArtakMSFT maybe you could confirm this information. |
@HarelM Do you mind opening another issue for your dilemma so we can track if there is a similar problem there? I don't want it to get lost between the comment on the PR and this issue. |
UseProxyToSpaDevelopmentServer
and UseEndpoints
I split up the analyzer problem into a separate bug. Moving this to the Blazor area to resolve why the SPA setup used in user code is causing issues with cc: @mkArtakMSFT |
@SteveSandersonMS when convenient could you please check this out? |
@captainsafia I'm not sure what the other bug should say if I need to open a new one, the bottom line of this bug describes my problem. |
I've looked into it, and it appears to match with what @JamesNK says in #44244. That is, @captainsafia Do any problems occur if people call @HarelM You might already be aware, but |
No description provided.
The text was updated successfully, but these errors were encountered: