News for hackers. Stuff that matters.
Re:Comparing Svelte and React by M2Ys4U on Wednesday March 24, 2021 @05:23PM (#26573114)
That may be visually simpler, but if onMount were to start passing a parameter to its callback in a future version (for whatever reason) then that will be passed to listenForAuthChanges. Using the anonymous function means that wouldn't happen.

There are no comments on this comment yet.