by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 03 2019 12:11
    dotnet-maestro[bot] commented #1813
  • Jun 03 2019 12:11

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    (compare)

  • Jun 03 2019 12:11

    dotnet-maestro[bot] on master

    Update dependencies from https:… (compare)

  • Jun 03 2019 12:11
    dotnet-maestro[bot] closed #1813
  • Jun 03 2019 12:06
    dotnet-maestro[bot] opened #1813
  • Jun 03 2019 12:06

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    Update dependencies from https:… (compare)

  • Jun 03 2019 12:05

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    (compare)

  • May 30 2019 11:54
    jenergm commented #279
  • May 29 2019 14:59
    tmenier commented #1492
  • May 29 2019 04:58
    danroth27 updated the wiki
  • May 28 2019 14:25
    lewing commented #1807
  • May 27 2019 19:13
    matheusjulio96 commented #1652
  • May 27 2019 13:30
    springy76 commented #306
  • May 27 2019 13:13
    SQL-MisterMagoo commented #306
  • May 27 2019 13:07
    springy76 commented #306
  • May 27 2019 13:06
    springy76 commented #306
  • May 27 2019 12:24
    SQL-MisterMagoo commented #306
  • May 27 2019 12:20
    springy76 commented #306
  • May 27 2019 12:10
    dotnet-maestro[bot] commented #1812
  • May 27 2019 12:10

    dotnet-maestro[bot] on darc-master-e3474f54-f92f-4c3f-b116-ed9bdfe9754d

    (compare)

Milogrim
@akourbat
in the long run
Milogrim
@akourbat
but even then, since everyting happens on the server in case of SSB, when proper scopes are defined you can end up using same benefits whether you are injecting a service that owns a dbcontext, or you inject a dbcontext directly into a component, i.e. it will track changes for you in either scenario. But scopes are somewhat less than crystal clear as of yet, in Blazor.
Milogrim
@akourbat
Maybe it's a wrong place to ask but - did anyone hear anything about EF.core CosmosDB provider making it into a final 3.0 dot.net release at the end of September? p8 and p9 of EF had no clues
Ivan Josipovic
@IvanJosipovic
my guess is no, they had to drop a tonnn of stuff near the end.
Milogrim
@akourbat
damn that's bad...
Ivan Josipovic
@IvanJosipovic
hmm this shows it as "Done", aspnet/EntityFrameworkCore#15403
"All the feature work planned for 3.0 has been completed." aspnet/EntityFrameworkCore#12086
Milogrim
@akourbat
изображение.png
not a word though in the p9 notes
maybe they just suck at writing blogposts, but somehow I doubt it is the reason
Alberto Passalacqua
@AlbertoPa
well anyway 3.1 is in 2 months :P
Joseph Garrone
@JosephGarrone
wonder if ef core is gonna have in memory in time for release
Jopo
@DotNets2010_twitter

What is Html.RenderComponentAsync<App>(RenderMode.ServerPrerendered, null), when using Blazor serverside ?

What happens on initial request when using ServerPrerendered?

Jopo
@DotNets2010_twitter
Or hat happens when using only Server or Static. I don't get the desc on the docs page.
a couple scrolls down is an explanation for it
Jopo
@DotNets2010_twitter
@Joe4evr I have read that before, but I don't get it.
Jopo
@DotNets2010_twitter
For example I have a Blazor Server app and an Index page with Components on it.
Now I request this default page from my Browser. I would assume that everything gets rendered on the server and is then sent down to the client/browser.
I would assume that this is Server. But what is ServerPrerendered and Static ?
Joe4evr
@Joe4evr
if your entire project is already Blazor, then RenderComponentAsync is meaningless to you
Peter Morris
@mrpmorris
If anyone is curious, here is the PR to update the Blazor-University sample projects to Preview 9
mrpmorris/blazor-university#3
SQL-MisterMagoo
@SQL-MisterMagoo

@Joe4evr That's not quite true - it is used to PreRender a site for SEO purposes (or even just to present a better experience for the user)

My understanding (which could be wrong) is:

Server = the index is sent to the client, then the SignalR connection is made, and when the connection becomes active, the components are rendered and sent to the client (the user sees and can interact with your components)

ServerPrerendered is for mainly, but not exclusively for SEO - the current layout is rendered server side and sent to the client in the initial Response - it is "Static" content - the user does not yet have a connection to the "Blazor" server - there is no SignalR connection yet, but there will be one soon. Once the connection is Active, the client is updated with a new render of the components which is interactive.

Static - A bit like PreRendered, but there will be no SignalR connection ever for this component - more like a traditional ASP.NET site, but not really

Peter Morris
@mrpmorris
@danroth27 Did you see the solution to the problem I was having with @onclick=@( () => Edit(item.id) )?
Adding @using Microsoft.AspNetCore.Components.Web to my .razor component fixed the problem.
SQL-MisterMagoo
@SQL-MisterMagoo
@mrpmorris I missed that as well but it was called out in the blog post for this release - dan told us - we just didn't read it properly!
Peter Morris
@mrpmorris
I saw it should be added to the _Imports.razor file, but I would expect a missing using to give a compiler error that makes more sense
Yeah, I'm not complaining we weren't notified, just saying the effect of not doing it (or removing it in in future thinking it's not needed) is weird and unhelpful
SQL-MisterMagoo
@SQL-MisterMagoo
Totally - it would be nice to get a better message, but I can see how it would be hard to do that in a mixed language environment like razor - but in this case, the file extension should be a clue to the analyzer that you are working on a component, so neeeeed that using...
Steven T. Cramer
@StevenTCramer
@SQL-MisterMagoo Thats for the explination of Server, ServerPrerendered and Static. Hopefully the docs will get updated with some usecases that make that more clear.
Matt Arrowsmith
@ArryMatt
does anyone know if CSB Preview 9 has much in the way of performance improvements?
my CSB project runs well on my machine, but on a 2 year old laptop it's sluggish as hell and client says it's not acceptable
I have a 32 core beast
Jani Turunen
@Janisku7
IComponentContext is great
super uber great
SQL-MisterMagoo
@SQL-MisterMagoo

IComponentContext is great

@Janisku7 You mean "gone" right?

Jani Turunen
@Janisku7
its gone? nooooooooooooooooooooooooooooooooooooooooooooo
I start to feel like blazor dev team want to make my blazor developing impossible
if its really gone it kill every blazor project i have
its most critical thing to have
SQL-MisterMagoo
@SQL-MisterMagoo
Yes, gone. Apparently they decided we didn't need it and we should rely on components / OnAfterRender to let us know when connected
@Janisku7 Explain your position here: aspnet/AspNetCore#13296
Jani Turunen
@Janisku7
@SQL-MisterMagoo does that even work without bool
SQL-MisterMagoo
@SQL-MisterMagoo
No, it requires a bool parameter now which is set to true on the first render for each component. And OnAfterRender and OnAfterRenderAsync are only called when the component is connected.
Jani Turunen
@Janisku7
when you first said those OnAfterRender(bool) it would be cool so I got the idea those are additional methods for lifesycle that would have being more control
I start to think that Blazor have become less flexible
Jopo
@DotNets2010_twitter

@Joe4evr That's not quite true - it is used to PreRender a site for SEO purposes (or even just to present a better experience for the user)

My understanding (which could be wrong) is:

Server = the index is sent to the client, then the SignalR connection is made, and when the connection becomes active, the components are rendered and sent to the client (the user sees and can interact with your components)

ServerPrerendered is for mainly, but not exclusively for SEO - the current layout is rendered server side and sent to the client in the initial Response - it is "Static" content - the user does not yet have a connection to the "Blazor" server - there is no SignalR connection yet, but there will be one soon. Once the connection is Active, the client is updated with a new render of the components which is interactive.

Static - A bit like PreRendered, but there will be no SignalR connection ever for this component - more like a traditional ASP.NET site, but not really

@SQL-MisterMagoo
1.) What is an index in this context -Server?
2.) Mainlayout and the components get rendered too? But static?

  1. Static: You get a static site, and you have to go the traditional way, calling web api's using js ?
SQL-MisterMagoo
@SQL-MisterMagoo

when you first said those OnAfterRender(bool) it would be cool so I got the idea those are additional methods for lifesycle that would have being more control

@Janisku7 From a component point of view this is a good thing - you can now rely on OnAfterRender(true) as the first client-connected render.

For "Services" in DI that need to know about connected state, it's not so great - kind of forces you to use the App component as your main state lifecycle controller

Chris Sainty
@chrissainty

For "Services" in DI that need to know about connected state, it's not so great - kind of forces you to use the App component as your main state lifecycle controller

I’m not sure that’s the worst thing

Jani Turunen
@Janisku7
yeah as services point of view its not great
@chrissainty well think you have multiple services and those have they own set of components so when connection is lost to service those components arent available and when connection is back those can get shown or components update
Chris Sainty
@chrissainty
Why would services have components?
Jani Turunen
@Janisku7
in app you config some components to specific service or you design components for service