const function Component = () => {
const data = useSelector(state => state.data);
useEffect(async () => {
const {token} = queryString.parse(location.search):
const response = await fetch(...).then(res => res.json());
if (!response.status) {
dispatch(updateError(true));
}
}, []);
};