driver icon indicating copy to clipboard operation
driver copied to clipboard

Add memoization

Open switz opened this issue 2 years ago • 2 comments

Would be nice to memoize the library, hopefully with minimal bundle size increase

switz avatar May 20 '23 22:05 switz

Memoizing via state keys seems like enough, but if flags isn't pure then it'll break. Maybe worth adding a deps array like useMemo.

switz avatar May 20 '23 22:05 switz

Would also be nice if the library was lazier in its evaluation rather than immediately parsing all derived objects.

switz avatar Feb 21 '24 01:02 switz