You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the component: use of referenceName, fieldFor in the render and setting the values of the fieldfor in the componentWillMount.
The component does set the values in the componentWillMount like shown bellow:
but as soon as the references are loading, the values of the fieldFor (denominationSocial, siren) are set to null :
Expected behaviour
The values of the fieldFor should not be reset.
#Work around
Add a componentWillUpdate and check if the references are loading . In that case, reload the state with the correct value like done in the componentWillMount.
Versions
Focus-core: 2.2.1
Focus-components: 2.2.2
The text was updated successfully, but these errors were encountered:
Current behaviour
Description of the component: use of referenceName, fieldFor in the render and setting the values of the fieldfor in the componentWillMount.
The component does set the values in the componentWillMount like shown bellow:
but as soon as the references are loading, the values of the fieldFor (denominationSocial, siren) are set to null :
Expected behaviour
The values of the fieldFor should not be reset.
#Work around
Add a componentWillUpdate and check if the references are loading . In that case, reload the state with the correct value like done in the componentWillMount.
Versions
Focus-core: 2.2.1
Focus-components: 2.2.2
The text was updated successfully, but these errors were encountered: