Javascript – Array received as prop from parent used as a dependency of useMemo triggers infinite re-rendering
I have a component that looks like this import { useState, useEffect, useMemo } from 'react' import Input from '~/components/Input' import Fuse from 'fuse.js' interface Props { data: any[] keys: string[] onUpdate: (data: any[]) => void placeholder: string } const…