and couldn't find the answer on the internet. Is there a way to do something if an useEffect is called and do something else if useEffect is not called. Like an if statement?
like:
**if** (useEffect(() => {
},[hello]) {
call a function } **else** {
call another function}
The goal is to call a function if the var hello changes and call another one is hello doesn't change. Thank you.