Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component not re rendering when the value change #3

Open
KamyarLajani opened this issue Mar 13, 2021 · 0 comments
Open

Component not re rendering when the value change #3

KamyarLajani opened this issue Mar 13, 2021 · 0 comments

Comments

@KamyarLajani
Copy link

I am facing this issue whenever a rating value changes, the StarRating component not re rendering and only shows the previous rating styles.
Example:
<script> let value = 1; setTimeout(() => { value = 3; }, 3000); </script> <StarRating rating={value}></StarRating>
I think you have to use reactive expression for the rating value inside your component. Thanks

@KamyarLajani KamyarLajani changed the title Component not re rendering when the value changed Component not re rendering when the value changes Mar 13, 2021
@KamyarLajani KamyarLajani changed the title Component not re rendering when the value changes Component not re rendering when the value change Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant