mirror of https://github.com/zulip/zulip.git
37eeb90695
For some widgets we now avoid duplicate redraw events from this old pattern: widget = list_render.create(..., { }).init(); widget.sort(...); The above code was wasteful and possibly flicker-y due to the fact that `init` and `sort` both render. Now we do this: widget = list_render.create(..., { init_sort: [...], }); For other widgets we just clean up the need to call `init()` right after `create()`. We also allow widgets to pass in `sort_fields` during initialization (since you may want to have `init_sort` use a custom sort before the first render.) Finally, we make the second and third calls eliminate the prior updates from the previous widget. This can prevent strange bugs with double-reversing columns (although that's been prevented in a better way with a recent commit), as well as avoiding double work with sorting. |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
images | ||
js | ||
shared | ||
styles | ||
templates | ||
third | ||
.eslintrc.json | ||
.gitignore | ||
favicon.ico |