Javascript – Calling a hook inside a useMemo workaround
Currently I am mapping through a list in my react component: const items = useMemo(() => { return items.map(item => { const element = useSearchResult(item) }) ... }, [dependencies]) I am aware that calling a hook inside a useMemo is…