Sometimes a single reference should be kept out of the inputs array, we could allow the user to specify it. A proposed syntax is:
import { stale, useAutoMemo } from 'hooks.macro';
import { useRandomValue } from 'minister-of-silly-hooks';
function MyComponent({ prop }) {
const rnd = useRandomValue();
const value = useAutoMemo(prop * stale(rnd));
}
Sometimes a single reference should be kept out of the inputs array, we could allow the user to specify it. A proposed syntax is: