Skip to content

Commit 79c356e

Browse files
kammeowskhanniie
authored andcommitted
Fixed a comment typo in custom-hooks.js
1 parent 0651ccf commit 79c356e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: client/modules/IDE/hooks/custom-hooks.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export const useModalBehavior = (hideOverlay) => {
4747
};
4848

4949
// 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.
50+
// This hook basically applies useEffect but keeps track of the last value of relevant props
51+
// So you can pass a 2-param function to capture new and old values and do whatever with them.
5252
export const useEffectWithComparison = (fn, props) => {
5353
const [prevProps, update] = useState({});
5454

0 commit comments

Comments
 (0)