message.error/success/... duration argument is optional #7857
What problem does this feature solve?
Because duration have the default value.
message.error(content, duration, onClose)
Sometime I want to use onClose, but have to reassign value to duration even equal to the default value.
What does the proposed API look like?
I can use it two way.
message.error(content, duration, onClose) message.error(content, onClose)
duration is optional, we can identify the onClose using the
The text was updated successfully, but these errors were encountered: