rum

Simple, decomplected, isomorphic HTML UI library for Clojure and ClojureScript | 0.12.8 https://github.com/tonsky/rum/blob/gh-pages/CHANGELOG.md#0128
cmdrdats 2020-08-13T11:20:45.208300Z

@roman01la possibly related to my performance query : I'm reading the rum Readme.md - it says (Rum uses requestAnimationFrame to batch and debounce component update calls). - does this still hold? I seem to remember something in the commit log that you removed this?

2020-08-13T11:22:46.209200Z

yep, we no longer do that

cmdrdats 2020-08-13T11:23:17.209500Z

the problem I'm having is that I'm stuck in between 0.11.5 and 0.12.3 because there's a specific bug in 0.11.5 that's been fixed in 0.12.3... I've done all the work to migrate (along with adding some other features to our framework)

cmdrdats 2020-08-13T11:23:33.209700Z

but now I can't merge and make it live to use with other stuff because of this regression

cmdrdats 2020-08-13T11:23:52.209900Z

is there a way I can re-introduce the batching?

cmdrdats 2020-08-13T11:24:40.210100Z

I mean, it just makes sense to debounce some swaps before actually doing the re-rendering work?

cmdrdats 2020-08-13T11:31:06.210500Z

Is there some kind of documentation of the thinking process around the reasoning for removing the batching and how we're supposed to adjust?

2020-08-13T11:37:13.210700Z

no docs, but main point is broken input fields

2020-08-13T11:37:41.210900Z

batching for state updates can be done in application code

cmdrdats 2020-08-13T11:39:34.211100Z

so basically just need to debounce on input fields?

2020-08-13T11:42:06.211300Z

yeah, while raf batching was useful in Rum, broken inputs was a constant PITA with lots of workarounds, also having own scheduling mechanism on top of React's one can easily result in unexpected bahavior

2020-08-13T11:44:34.211500Z

I'd say it's better to optimize specific parts in application code rather than making a library smart, which never works for everyone

cmdrdats 2020-08-13T12:02:13.211700Z

Ah, ok. Makes sense, thanks. I'll do some testing my side