Workflow editor (#735)
Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
10
skyvern-frontend/src/hooks/useMountEffect.ts
Normal file
10
skyvern-frontend/src/hooks/useMountEffect.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { useEffect } from "react";
|
||||
|
||||
function useMountEffect(callback: () => void) {
|
||||
return useEffect(() => {
|
||||
callback();
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
}
|
||||
|
||||
export { useMountEffect };
|
||||
Reference in New Issue
Block a user