Fix timer counting, fix flickering on comment creation, update dependencies

This commit is contained in:
Maksim Eltyshev
2019-10-19 17:11:37 +05:00
parent 2566ff376e
commit e07b0bc5b1
5 changed files with 21 additions and 13 deletions

View File

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