Describe the bug
The docs indicate that the \<Element> component accepts a prop 'hidden' that can be used to control whether or not a node's user component is hidden or visible. The initial value of that prop seems to work fine, but modifying the value of that prop after the node is created appears to have no effect.
To Reproduce
Steps to reproduce the behavior:
Render an Element component with a variable hidden prop (eg. \<Element is='button' hidden={conditional} />)
Alternate the value of the conditional between true and false.
React's inspector shows the value of the prop changing, but the value of node.data.hidden appears to remain constant.
Expected behavior
My expectation was that modifications made to the prop values of an Element component would in turn update the corresponding properties of the Node object.
Your environment
Software
Version(s)
craft.js
@craftjs/core@0.1.0-beta.13
React
react@16.12.0
TypeScript
Browser
Chrome - Version 86.0.4240.198 (Official Build) (64-bit)
Describe the bug The docs indicate that the \<Element> component accepts a prop 'hidden' that can be used to control whether or not a node's user component is hidden or visible. The initial value of that prop seems to work fine, but modifying the value of that prop after the node is created appears to have no effect.
To Reproduce Steps to reproduce the behavior:
Expected behavior My expectation was that modifications made to the prop values of an Element component would in turn update the corresponding properties of the Node object.
Your environment