feat: introduce automatic layout for new flow editor

This commit is contained in:
kasia.oczkowska
2024-04-26 10:46:50 +01:00
committed by Ali BARIN
parent bac4ab5aa4
commit d6abf283bc
8 changed files with 670 additions and 25 deletions

View File

@@ -0,0 +1,9 @@
import { useEffect, useRef } from "react";
export const usePrevious = (value) => {
const ref = useRef();
useEffect(() => {
ref.current = value;
});
return ref.current;
};