verbal-limeV
Refine3y ago
3 replies
verbal-lime

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?
Was this page helpful?