Home > Software engineering >  Why does useIsMounted return a callback instead of the value itself?
Why does useIsMounted return a callback instead of the value itself?

Time:04-08

I'm referring to useIsMounted from Edit why-does-useismounted-return-a-callback-instead-of-the-value-itself

Seems it was just a design decision to return a memoized function.

  • Related