Katex icon indicating copy to clipboard operation
Katex copied to clipboard

loadData() gets called multiple times

Open ratala1 opened this issue 5 years ago • 3 comments

you can modify setDisplayText to avoid unnecessary reloads.

setDisplayText(String text, int size, int color) { this.text_size = size; this.text_color = color; this.display_text = formula_text; loadData(); }

ratala1 avatar Jul 09 '20 10:07 ratala1

oh! you needed a single method for setting all the changes at once? is that the case?

lingarajsankaravelu avatar Jul 09 '20 10:07 lingarajsankaravelu

Yes, I feel it's quite faster.

ratala1 avatar Jul 09 '20 10:07 ratala1

cool.. will add

lingarajsankaravelu avatar Jul 09 '20 11:07 lingarajsankaravelu