Sublime
An inspiration engine for ideas

A simple general purpose memoizer utility for TypeScript
- lazily computes a value when accessed
- auto-caches the result by overwriting the getter
- typesafe
I use this all the time for deferring initialization or expensive operations. unlike a simple getter, the... See more

let me put the useEffect vs use Effect conversation to rest https://t.co/uz5QZgO8Gq

you can take advantage of the fact that javascript maps preserves their keys in insertion order to build a really simple LRU cache in 40 lines of code
don't npm install the world https://t.co/3pVozvijfU