if (data.result !== '') {
setPopout(<ScreenSpinner size='large' />);
data.result.map((e, index) => {
ToDoList.push({id: e.id, name: e.name, key: {index}});
});
setPopout(null);
}
я передаю уникальный ключ, но ошибка остается
Warning: Encountered two children with the same key, `2`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.