score:0

this is caused because of calling hooks inside iterations or conditional blocks, the more common scenarios in which i've found this kind of error happening were like:

// using useselector inside a map function
const mylist = someids.map((id) => useselector((state) => state.someslice[id]));

// calling useeffect inside if block
if(somecondition) {
    useeffect(() => {
        // doing some stuff
    }, []);
}

look up for this kind of errors in your components.


Related Query

More Query from same tag