Version: v4.5.0use-effect-once-whenAbout#Runs a callback effect atmost one time when a condition becomes trueInstallation#npm install --save @rooks/use-effect-once-whenCopyImporting the hook#import useEffectOnceWhen from "@rooks/use-effect-once-when"CopyUsage#function Demo() { const hasOpenedPage = true useEffectOnceWhen(() => { console.log("user has opened page") },hasOpenedPage); return null} render(<Demo/>)CopyCodesandbox Examples#Basic Usage#Join Bhargav's discord server#You can click on the floating discord icon at the bottom right of the screen and talk to us in our server.