How to properly use setFilters function provided from useSimpleList
I have the following code
useEffect(() => {
setFilters([
{
.....
}
]);
}, [setFilters]);
It seems it is being rendered constantly, I think there is a problem with dependences, how should I proper call setFilters?
useEffect(() => {
setFilters([
{
.....
}
]);
}, [setFilters]);
It seems it is being rendered constantly, I think there is a problem with dependences, how should I proper call setFilters?
