reactive-table icon indicating copy to clipboard operation
reactive-table copied to clipboard

[Q-PR] The best way to implement a reactive filter which does not update automatically

Open s7dhansh opened this issue 9 years ago • 1 comments

I am thinking something like, RF.set(<value>, {update: false}). This would help us in case of having multiple filters that update successively within seconds. Then we can call plain .set on the last one, and .set with {update: false} on the others to prevent rerunning of the updateHandle.

What do you think would be a good way to implement such a feature?

s7dhansh avatar Sep 29 '16 05:09 s7dhansh

I use _.debounce (https://github.com/aslagle/reactive-table/blob/master/lib/reactive_table.js#L340) to prevent rerunning of updateHandle - it waits to run until 200 ms has passed since it was last called. Maybe just make that value configurable so it can be set to wait a longer time?

aslagle avatar Oct 01 '16 18:10 aslagle