feat: introduce automatic layout for new flow editor
This commit is contained in:

committed by
Ali BARIN

parent
bac4ab5aa4
commit
d6abf283bc
9
packages/web/src/hooks/usePrevious.js
Normal file
9
packages/web/src/hooks/usePrevious.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { useEffect, useRef } from "react";
|
||||
|
||||
export const usePrevious = (value) => {
|
||||
const ref = useRef();
|
||||
useEffect(() => {
|
||||
ref.current = value;
|
||||
});
|
||||
return ref.current;
|
||||
};
|
Reference in New Issue
Block a user