caxiam/ember-tabular

Set option/flag to allow/disallow cached requests

Opened this issue · 1 comments

Set option/flag to allow/disallow cached requests

@morgan So one of the initial reasons we are making the request each time is to always reset and show the default state.

For example, we can probably implement some kind of cacheRequest property that when set will not make a request on initialization of the component and just serve up the cached table data. Perfect!

The caveat to this is what if the user filtered the results then transitioned away from the component and transitioned back, the table would show whatever "state" the component was in, so it would show the filtered results. (but would not actually show the active filter input pre-populated because the showFilterRow property defaults to false...)