How to debug this kind of issue and what it is called?

This is the first time i'm coming through this issue static/js, i've never seen this kind of issue before, May i know what it is called and how to debug it?
No description
5 Replies
vic
vic4mo ago
U use businessProfile state variable without Create a state for that like : const [businessProfile, Setprofile ] = useState(" " ) Or it could be error at props , Share the code so it would easier
unemployed
unemployedOP4mo ago
I'm not sure from which component the issue is coming from, since its not specified in the error message, I'm using businessProfile in several components example its common in <aside>, <header> and some of them in some pages the issue arise when I switch the profile in my webapp and that too in sepecific pages it appears for few milliseconds and go away
vic
vic4mo ago
Check on updateFunctionComoonent It shows updateFunctionComoonent from tat error message I'm new to learn react
glutonium
glutonium4mo ago
this is just a typical js error react is just showing it in a friendly way u should be able to fix it on your own. otherwise it is safe to say u have not practiced js enough yet and u should not be doing react without properly knowing js
unemployed
unemployedOP4mo ago
Thanks this method resolved the issue, the undefined was coming from useAuthentication hook i've added the typecheck condition and is now resolved
Want results from more Discord servers?
Add your server