Fork me on GitHub
#datascript
<
2018-09-06
>
stathissideris13:09:07

hello, a question about perf: Does this component get re-rendered selectively when a specific part of the database is changed? Or does it get re-rendered every time? https://github.com/tonsky/datascript-todo/blob/gh-pages/src/datascript_todo/core.cljs#L149-L159

mattly17:09:59

my understanding is that this would only be re-rendered when told to by its parent

mattly17:09:12

1) db should be a stable reference

mattly17:09:32

2) the component doesn't mixin either rum/static or rum/reactive

mattly17:09:12

then you look at this,

mattly17:09:36

and it's basically re-rendering the whole app (and their queries) after each transaction