C
C#17mo ago
diddydemon

❔ Blazor high frequency UI changes

When working with Blazor. I have a table that contains data and control components. These rows have child rows that also contain a control and some data. The data in the child rows is updated frequently via signal r which in turn causes a lot of statehaschanged events and frezes the table. Is there a pattern I should be using to avoid this issue?
3 Replies
Jimmacle
Jimmacle17mo ago
it sounds like you need to throttle updates to the UI, either for the individual updates or buffering them and updating them all in one go
diddydemon
diddydemon17mo ago
Yeah thats the current plan. Cache the last updated state and push that view to the table every 2s. Was just wondering if I missed a trick somewhere. Currently the signal r handler pushes new data every 0.2 sec on average for all 20 childrows that are rendered. I'm just having to adopt eventual consistency for this "real-time" data to get usable controls essentially
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
✅ Cannot implicit convert typeI am working on this LC puzzle https://leetcode.com/problems/binary-tree-level-order-traversal/?envT✅ intercept keyboardI'm working on a kiosk app that should lock out certain user levels, just inquiring the best method ❔ Not sure what to use to Code (Idk language)I want to make something but I'm not sure how I would, it's not about learning how to code. It's abo❔ Using a Custom JSON Converter on NswagStudio's Generated C# ClientDoes anyone know how I can make NswagStudio use a custom json converter that I made on the generated❔ C# Fundamental: does setting one object to another point or copy?```cs public SomeType someObject = new SomeType(); public SomeType anotherObject = someObject; ``` ❔ [RazorPages] Any clues why this Select isn't working?```csharp Index.cshtml.cs public async Task<IActionResult> OnGet(string qstring) { Console.writeli✅ Adding functionality to a call of duty mw2 (2009) steam toolHello, I have a tool which creates clean mw2 lobbies (free from mods etc). It has a kick feature whi❔ Practical use for bitwise operators, specifically |= in context.**Not bitwise application. This is a simple boolean or equals** Howdy folks. Currently working in a❔ I want to pass information from Form3 to listBox in Form2Hello, I want to transfer the information entered in the textBox in Form3 to the listBox in Form2 wh❔ System.Management.Automation errorWhile I trying run powershell with the Automation Nuget addon it print this error: ``` System.Manage