question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Components] Feedback & Reconnect Logic (broken if state is lost) & Internationalization

See original GitHub issue

Hello, currently I’m toying around with Razor Components Server-Side and found the following things when using it with Razor Pages:

  1. If the Server looses a Connection all Messages will be in englisch, currently there should be a way to change that.
  2. reconnect will actually make the whole page unusable, mostly only certain “widgets” should be made unusable. i.e. only the RenderComponentAsync might be unavailable so the rest of the page can still be visible.
  3. reconnect does not work if the state on the signalr is completly lost, the reconnect button just does not work. (if that would be configurable, one could decide to just throw away everything and re-render, this is ok, if the page just contains a small widget that isn’t so necessary, or if it is a Datepicker, i.e. the state might be not that necessary)
  4. automatic reconnect is not possible (https://docs.microsoft.com/en-us/aspnet/core/blazor/hosting-models?view=aspnetcore-3.0#improved-signalr-connection-lifetime-handling) withAutomaticReconnect is not available.

I Basically created a small Home Razor Page and tried to run it from Razor Pages (Home.cshtml + Home.cshtml.cs and added endpoints.MapRazorPages()):

Hase

@(await Html.RenderComponentAsync<Counter>())

<script src="_framework/blazor.server.js" autostart="false"></script>
<script>
  Blazor.start({
    configureSignalR: function (builder) {
      builder.configureLogging(2); // LogLevel.Information
      // builder.withAutomaticReconnect(); // this breaks the site
    }
  });
</script>

Most stuff is working, it’s just these “small” issues. Besides that it’s just awesome.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
danroth27commented, Jun 5, 2019

actually than the docs are misleading: https://docs.microsoft.com/en-us/aspnet/core/blazor/hosting-models?view=aspnetcore-3.0#improved-signalr-connection-lifetime-handling

Ah, thanks for pointing that out! This content is misplaced (my bad!) and should be part of the SignalR docs. @guardrex

0reactions
mkArtakMSFTcommented, Jun 19, 2019

Thanks for contacting us, @schmitch. To avoid mixing contexts, please file separate issues per each item on your list, which still require attention.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebLogic Server Known and Resolved Issues
If a deployment plan has overrides of non-configurable elements, WebLogic Server does not currently reject the elements or fail to parse them.
Read more >
Bound services overview
A bound service is the server in a client-server interface. It lets components such as activities bind to the service, send requests, ...
Read more >
RFC 7530: Network File System (NFS) Version 4 Protocol
The CLOSE operation also provides for the release of state accumulated by OPEN. ... or it can break the transport connection and reconnect...
Read more >
A geographic relational perspective on the ...
Rooted in relational thinking in economic geography, a geographic relational lens combines insights from research on foreign investment, social ...
Read more >
the changing logic of internationalization in german universities
The qualitative dissertation project focuses on the consequences of the changing logic of internationalization for actors within the landscape of German ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found