Chips does not support async data

UI Components for React
Post Reply
rvw
Posts: 12
Joined: 01 Jun 2018, 10:48

13 Jun 2018, 09:02

While playing around with the Chips component, I found out it does not support async data loaded into its 'value' prop. I digged deeper and saw that the values coming from the value prop are loaded into the state in the constructor, and the chips values are maintained in an internal state.

Would it be possible to have the user maintain the values and Chips only display the values? That would make it a much more reusable component. Right now it's practically worthless as there's no way to load in values from a server (only hardcoded values) and if you want to update stuff based on input, you'd have to maintain the state yourself anyways via the onAdd and onRemove events.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests