Adds the useDisposableMemo
which allows automatic disposal of memoized third-pary objects.
Objects created in this process gets disposed when:
- Dependencies changes.
- The component gets cancelled (e.g. Strict Mode rendering)
- The component unmounts.
Adds the useDisposableMemo
which allows automatic disposal of memoized third-pary objects.
Objects created in this process gets disposed when: