Add email and password change functionality for a current user, remove deep compare hooks

This commit is contained in:
Maksim Eltyshev
2019-10-18 08:06:34 +05:00
parent b53e5bf94c
commit 680d664279
67 changed files with 1232 additions and 267 deletions

View File

@@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useRef } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { useDeepCompareEffect, useForceUpdate, usePrevious } from '../../hooks';
import { useForceUpdate, usePrevious } from '../../hooks';
import { formatTimer } from '../../utils/timer';
import styles from './Timer.module.css';
@@ -50,7 +50,7 @@ const Timer = React.memo(({
clearInterval(interval.current);
}, []);
useDeepCompareEffect(() => {
useEffect(() => {
if (prevStartedAt) {
if (!startedAt) {
stop();