cloudinary-community / cloudinary-community/next-cloudinary
[Feature] Update component (i.e. CldUploadButton) prop values dynamically
- Dominant language
- JavaScript
- Stars
- 300
- Forks
- 137
- Avg merge
- 3m
- Merged PRs (30d)
- 2
Description
# **Feature Request**
## **Is your feature request related to a problem? Please describe.**
I pass different props to the `CldUploadButton` - which can sometimes change. For example, the folder setting.
The updated value of the prop isn't respected/doesn't trigger a re-rendering - and remains as it was first provided.
## **Describe the solution you'd like**
I think tracking the component props' changes, and then updating accordingly could be useful.
## **Describe alternatives you've considered**
A current alternative is re-triggering rendering by setting CldUploadButton's key prop to whatever changing props you may have. It currently works for me as my dynamic props can be represented by strings.
Contributor guide
Assessment
This issue has not been assessed yet.