Skip to content

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

Description

@suuf

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions