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 e564729598
commit 2566ff376e
67 changed files with 1232 additions and 267 deletions

View File

@@ -1,7 +1,7 @@
import { useEffect, useRef } from 'react';
export default (value) => {
const prevValue = useRef();
const prevValue = useRef(value);
useEffect(() => {
prevValue.current = value;