-
After adding a new option using handleAddNewOption, the setProp correctly updates the items array, I can see the new item is added and gets logged in the items.map function but the UI does not update. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Everything looks fine from what I'm looking at, my first assumption was maybe a reference versus new value thing, but I see you're making sure to return new objects for your state. My only other thought is maybe with how you're pulling in the props through craft by just "props: node.data.props" not sure how that works but it's the only thing that looks weird compared to craftjs tutorials and how I have my own code setup. |
Beta Was this translation helpful? Give feedback.
Thank you for the reply.
I figured it out.
It only happens when you pass empty values in setProps.