Skip to content

Commit

Permalink
Removed dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexShukel committed Jan 22, 2024
1 parent 2d7ff3f commit bda8ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/usePopup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const usePopup = <P, K extends keyof P>(
}

oldPropsRef.current = props;
}, [props, update]);
});

return [open, close];
};

0 comments on commit bda8ca3

Please sign in to comment.