While DefaultItemAction accepts a function to dynamically change icon value as like below,
type IconFunction<T> = (item: T) => EuiIconType;
export interface DefaultItemIconButtonAction<T>
extends DefaultItemActionBase<T> {
type: 'icon';
icon: EuiIconType | IconFunction<T>;
color?: EuiButtonIconColor | EuiButtonIconColorFunction<T>;
}
It crashes when shown in CollapsedItemActions component, due to its resolver only presents in DefaultItemAction component.
{
name: 'Clone',
description: 'Clone this user',
icon: item => (item.online ? 'eye' : 'eyeClosed'),
onClick: this.cloneUser,
'data-test-subj': 'action-clone',
}

If I pass an action with dynamic icon value like above, the table crashes when clicking the expand button in action column.
While
DefaultItemActionaccepts a function to dynamically change icon value as like below,It crashes when shown in
CollapsedItemActionscomponent, due to its resolver only presents inDefaultItemActioncomponent.If I pass an action with dynamic icon value like above, the table crashes when clicking the expand button in action column.