-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
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));
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed