This is related to binding-scala-strategy-to-avoid-too-many-dom-tree-updates
In my project scala-adapters I display log entries that are sent over a websocket.
I have no control on how many entries are sent. So if there are a lot of entries the screen freezes.
I created a ScalaFiddle to simulate that: https://scalafiddle.io/sf/kzr28tq
What is the way to restrict the length of the entries (Vars
) or what is the best strategy to drop the first entry of a Vars
if the maximum length is reached?