At 2:35 you need to return the cleanup function from the useEffect callback, I mistakenly did that from iife. Just don't use iife in that case.
@genio51936 ай бұрын
Thank you so much, you helped me fix a logic issue in my code. Its a shame i didnt discover ur channel till late because i was struggling to find a teacher for firebase that uses next 14 Hope you cover auth next!
@CulesCoding6 ай бұрын
Glad it helped! Thanks for the suggestion. I have a plan to make a video related to auth.
@josevsebastian29093 ай бұрын
you didn't unsubscribe. please learn react before doing tutorials on next js.
@CulesCoding3 ай бұрын
thanks for noticing. I mistakenly return from the iife not from the useEffect callback.