cloudinary-community / cloudinary-community/next-cloudinary

[Feature] Update component (i.e. CldUploadButton) prop values dynamically

Open
#654 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.