Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
useEffect(() => {
setDataSource(
AspNetData.createStore({
key: 'id',
loadUrl: '/api/movie/list',
loadParams: {
filter: JSON.stringify(
activeFilters.map((x) => ({
field: x.field,
operation: x.operation,
value: x.value,
}))
),
},
})
);
}, [activeFilters]);