When using react hooks + onProgress callback function, the onProgress callback can not reflect for props changing, it will always take the old props. https://reactjs.org/docs/hooks-faq.html#is-there-something-like-instance-variables
When using react hooks + onProgress callback function, the onProgress callback can not reflect for props changing, it will always take the old props.
https://reactjs.org/docs/hooks-faq.html#is-there-something-like-instance-variables