mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
5a7a5d7ac6
**Problem:** According to the current implementation of Blazor(dotnet/aspnetcore#16213 (comment)), it runs in single-thread mode. Thus the call to `System.Threading.Thread.Sleep` will block the UI thread as well. It means when clicking the button, the UI freezes. For example, in button component, the UI will freeze of 500ms. It's a relatively small time, however Chrome do give a warning to this: *[Violation] 'setTimeout' handler took 500ms* **Changes:** Use `Task.Delay` which is a kind of built-in timer from dotnet. It won't block the UI thread. Co-authored-by: James Yeung <shunjiey@hotmail.com> |
||
---|---|---|
.. | ||
style | ||
Carousel.razor | ||
Carousel.razor.cs | ||
CarouselDotPosition.cs | ||
CarouselEffect.cs | ||
CarouselSlick.cs |