/
githubmirror
/
react-hook-form
Обзор
Документация
Войти
/
githubmirror
/
react-hook-form
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/logic/isNameInFieldArray.ts
9 строк
270 B
Beier Luo
Revert "🐞 fix #13260: notify all matching field-array roots on nested setValue updates (#13420)"
18 май 2026, 02:01
18 май 2026, 02:01
dfcebdb
Код
Авторство
О чём код?
import type { InternalFieldName } from '../types'; export default (names: Set<InternalFieldName>, name: InternalFieldName) => name .split('.') .some( (part, index, arr) => !isNaN(Number(part)) && names.has(arr.slice(0, index).join('.')), );