Skip to content

updateFilters

Michael Niday edited this page Jun 6, 2018 · 1 revision

When you have an existing collection that you simply want to refetch using an updated set of filters

this.props.collection.updateFilters({filters: {search: 'Luke'}})

NOTE: Current filters are persisted to the redux store, and will be maintained on subsequent requests unless specifically modified

You can use the following to reset the filters, just passing exactly what is desired

this.props.collection.updateFilters({filters: {search: 'Luke'}, resetFilters: true})

Clone this wiki locally