voronianski / react-star-rating-component

Basic React component for star (or any other icon based) rating elements
http://voronianski.github.io/react-star-rating-component/example
MIT License
379 stars 77 forks source link

redux-form full compatibility #37

Closed cristhian-net closed 7 years ago

cristhian-net commented 7 years ago

Hi, I'm using redux-form, but it doesn't seem to work very well the first click. The star component calls the onStarClick and then I update redux state with the correct value, but the stars are not coloring. I've created a demo project replicating this behaviour: https://stackblitz.com/edit/react-7kb6us . After the first click it works pretty well... Any ideas? Thanks

cristhian-net commented 7 years ago

Sorry it is not an issue anymore... I forgot to pass initial value to the star component and it worked like a charm ! Working sample can be found in the link provided previously