Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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