I wonder if I am using some different kind of React than Dan is :)))
"The user doesn't care whether it's initialization or update. " --So why am I keeping thinking of "should I need useCallback here?"
"That's what I meant by React not "missing" updates. React doesn't let you write rendering logic that leaves initialization and updates out of sync. " --So I have to fill the annoying dep arrays again and again to achieve this.
;(((
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I wonder if I am using some different kind of React than Dan is :)))
"The user doesn't care whether it's initialization or update. " --So why am I keeping thinking of "should I need useCallback here?"
"That's what I meant by React not "missing" updates. React doesn't let you write rendering logic that leaves initialization and updates out of sync. " --So I have to fill the annoying dep arrays again and again to achieve this.
;(((