React_Devtools_backend.js: 4026 OSTRZEŻENIE: Nie można zaktualizować komponentu („Browserrouter`), jednocześnie renderując inny komponent („ login ”).
const LiveMatches = (props: LiveMatchesProps) => {
const {
dateMatches,
draftingConfig,
sportId,
getDateMatches,
} = props;
useEffect(() => {
if (!dateMatches) {
const date = new Date();
getDateMatches({ sportId, date });
}
}, [dateMatches, getDateMatches, sportId]);
return (<div>{component stuff here..}</div>);
};
AHMED SHARIF