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
When using Ant Design's Modal with the destroyOnClose prop, the modal only renders its children when open. However, if a custom Modal component(e.g. BAIModal) is created using this, the state of this this custom Modal component does not reset state upon closing. This is because the component remains in the React render tree even when closed. This can lead to unnecessary rendering and network requests, requiring additional logic unrelated to the component's primary function to prevent these issues. There is a need to improve this for better code readability and maintainability.
The text was updated successfully, but these errors were encountered:
When using Ant Design's Modal with the
destroyOnClose
prop, the modal only renders its children when open. However, if a custom Modal component(e.g. BAIModal) is created using this, the state of this this custom Modal component does not reset state upon closing. This is because the component remains in the React render tree even when closed. This can lead to unnecessary rendering and network requests, requiring additional logic unrelated to the component's primary function to prevent these issues. There is a need to improve this for better code readability and maintainability.The text was updated successfully, but these errors were encountered: