Checked render prop does not work with external state props #814
-
Hello I don't know if this is a bug or me not working it out the right way. Since yesterday I'm having some issues with headless-issue_1.mp4As you can see from the video I was trying to implement the quick view of my different products and everything went on fine. I faced an issue when I had to deal with selecting sizes. Rendering and styling the different sizes was ok but when it came to rendering a different style based on the From the video, I have three components: Here is how they are structured
While passing down the states: Confused about why this was happening I tried to see if the same thing would happen if I declared my states in the component where the Surprisingly, everything was working as expected. The value of So I want to know is it a bug, or we can't provide an external state to a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hey! Thank you for your bug report! I'm pretty sure that the issue is that your |
Beta Was this translation helpful? Give feedback.
Hey! Thank you for your bug report!
Much appreciated! 🙏
I'm pretty sure that the issue is that your
selectedSize
is an object and that the identity changes somewhere in the code. I wrote more about that here in a similar issue: #585 (comment)If this doesn't help, then please create a minimal reproduction repo and share it, which makes it easier to pin point the issue.