Developer forum

Forum » Dynamicweb 10 » RenderComponentPartial

RenderComponentPartial

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I see that in the backend interfaces you are taking advantage of the "await" loading of partials:

@await Html.RenderComponentPartial("./Cells/Cell", cell)

Can we use something similar in front-end templates?

Thank you,
Adrian 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Adrian

You can do @RenderPartial(...) but there is no async version.

We can try to see if it could make sense to implement a @RenderPartialAsync(...)

 

You must be logged in to post in the forum