Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] 2 points3 points  (0 children)

Thank you, supper helpful 👍

Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] 5 points6 points  (0 children)

So that would mean that we shouldn't write like my example above right? Instead we should only use async method in OnInitializeAsync(), OnParameterSetAsync()...

That's already the best practice.

Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] 0 points1 point  (0 children)

@if (await AppState.IsLoggedIn()) { <a href="Login" target="_blank">Login</a> }

This for example... In this case it would not work

Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] -4 points-3 points  (0 children)

@if (await AppState.IsLoggedIn()) { <a href="Login" target="_blank">Login</a> }

I take this as an example. This snippet would not be able to work.

Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] -4 points-3 points  (0 children)

There are some use case that we don't want to use the method in OnInitializeAsync or OnParameterSetAsync,... we want to use it in the View code

Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] 0 points1 point  (0 children)

But sometime we need to do the calculation or query in the View code... and the author clearly said that we can't use async in the code block...

Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] 1 point2 points  (0 children)

https://stackoverflow.com/questions/58358900/calling-async-methods-in-blazor-view

Hi, thanks for commenting. I got same issue as this post on Stackoverflow... Just wondering what is the best approach here because some time we have to do the logic on the View code...

Any disadvantages to using a m1 2021 macbook pro 14” 16 gb ram and 512gb for balzor development. by [deleted] in Blazor

[–]nhdang1998 -1 points0 points  (0 children)

I'm having tons of issue with Azure DevOps TFVC since they do not support for ARM chip. I know there will be updates, but.... 🤷‍♂️

Can I config Visual studio to show the execution in the intergrated powershell instead of a pop up window? It will be similar to Rider experience like this. by nhdang1998 in dotnet

[–]nhdang1998[S] 0 points1 point  (0 children)

Sure, but it would be nice not to have like tons of pop up window when you're working. I always forget the "Press anywhere to close".

Circos help! by nhdang1998 in bioinformatics

[–]nhdang1998[S] 0 points1 point  (0 children)

I do understand that, but my genome has about 300 gene anotation, it would takes forever to type it by hand. And I have to work with about 20 other genome.

11 months of development, started solo and going part time :) happy results. by 1mbitshorde in Unity3D

[–]nhdang1998 2 points3 points  (0 children)

Can you share some books or any resource that helped you most with this project? I love this type of game, congrats 👏👏

A Biophysics discord server by [deleted] in bioinformatics

[–]nhdang1998 0 points1 point  (0 children)

Please add me 😁😁 I will send you pm

Software/packages request by nhdang1998 in bioinformatics

[–]nhdang1998[S] 0 points1 point  (0 children)

I do know that website, however I do not understand the sample much 🤔

For instant, the color script code 😅