shatran / card-react

React component for card https://github.com/jessepollak/card
MIT License
133 stars 65 forks source link

initialValues don't re-render #22

Closed Stas-Buzunko closed 7 years ago

Stas-Buzunko commented 7 years ago

Some users have already filled card info, in this case I have to fetch their data to let them edit it. So when it renders for the first time it uses default values. Then when data is fetched it appears in inputs but card display doesn't re-render with new values, and it re-renders only if input value is changed.

How can I fix this?

shatran commented 7 years ago

I guess you should only render the card when you have the fetched values? closing it as this is not an issue.

shatran commented 7 years ago

I guess you should only render the card when you have the fetched values?