score:2

Accepted answer
..
const { setSlots } = useContext(ContentSlotsContext);
useEffect(() => {
  getSlots(setSlots);
}, []);
..

Related Query

More Query from same tag