From 3b8e400f6fee389136d27c06eb243f0f4ae0121a Mon Sep 17 00:00:00 2001 From: Ku7eKam Date: Sat, 1 Feb 2025 11:57:28 +0530 Subject: [PATCH] Fixed a comment typo in custom-hooks.js --- client/modules/IDE/hooks/custom-hooks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/modules/IDE/hooks/custom-hooks.js b/client/modules/IDE/hooks/custom-hooks.js index 1b2c14e441..6471bbcac2 100644 --- a/client/modules/IDE/hooks/custom-hooks.js +++ b/client/modules/IDE/hooks/custom-hooks.js @@ -47,8 +47,8 @@ export const useModalBehavior = (hideOverlay) => { }; // Usage: useEffectWithComparison((props, prevProps) => { ... }, { prop1, prop2 }) -// This hook basically applies useEffect but keeping track of the last value of relevant props -// So you can passa a 2-param function to capture new and old values and do whatever with them. +// This hook basically applies useEffect but keeps track of the last value of relevant props +// So you can pass a 2-param function to capture new and old values and do whatever with them. export const useEffectWithComparison = (fn, props) => { const [prevProps, update] = useState({});