I am using React Virtualized <Autosizer>
component and I have verified that removing this causes the unexpected behaviour to go away.
https://github.com/bvaughn/react-virtualized/blob/master/docs/AutoSizer.md
My @computed
simply looks like this:
foo=[];
@computed get filteredCollection() {
return this.foo;
}
Why am I seeing this behaviour? Under what circumstances would this value not be cached by mobx and simply returned without invoking the function?
Causes unexpected behaviour:
<AutoSizer>
{this.renderTable}
</AutoSizer>
Does not cause unexpected behaviour:
{this.renderTable({ width: 200, height: 200 })}
(filteredCollection
is used by renderTable
)