Well, the problem was from the parent component where I called the child one :
<Menu
actions={{
copy: () => copy(),
delete: () => deleteElement(),
}}
classes={classes}
elements={elements}
key={menu.id}
menu={menu}
/>
I wasn't passing the parameter through the original function.
So I did that :
<Menu
actions={{
copy: (fieldParam, menuParam) => copy(fieldParam, menuParam),
delete: () => deleteElement(),
}}
classes={classes}
elements={elements}
key={menu.id}
menu={menu}
/>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…