You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using cellContent(), the function is called twice for every cell. When doing display work (eg make it a certain color) it's safe to do twice, but when doing statics, and for general performance, this is bad.
steps to reproduce:
create a maptable with a cellContent() function.
declare a var before the maptable: var count = 0;
inside your cellContent() function add a line count += 1;
expected: count == number of rows in table actual: count == 2 x number of rows in table
here's some prototypical code to illustrate the problem:
when using
cellContent()
, the function is called twice for every cell. When doing display work (eg make it a certain color) it's safe to do twice, but when doing statics, and for general performance, this is bad.steps to reproduce:
cellContent()
function.var count = 0;
cellContent()
function add a linecount += 1;
expected: count == number of rows in table
actual: count == 2 x number of rows in table
here's some prototypical code to illustrate the problem:
The text was updated successfully, but these errors were encountered: