We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b63a06 + 3b8e400 commit c7d835eCopy full SHA for c7d835e
1 file changed
client/modules/IDE/hooks/custom-hooks.js
@@ -47,8 +47,8 @@ export const useModalBehavior = (hideOverlay) => {
47
};
48
49
// Usage: useEffectWithComparison((props, prevProps) => { ... }, { prop1, prop2 })
50
-// This hook basically applies useEffect but keeping track of the last value of relevant props
51
-// 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.
52
export const useEffectWithComparison = (fn, props) => {
53
const [prevProps, update] = useState({});
54
0 commit comments