This PR exposes the VGS unmount function through a react ref.
Motivation and Context
There is existing logic where the VGS form will call unmount when the Form is unmounted from the DOM. However, this function may not always be available if the form is conditionally render (ie. in a modal). This is b/c the component is removed from the DOM before the unmount function can be called.
How Has This Been Tested?
Screenshots (if appropriate):
Types of Changes
[ ] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist:
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
This PR exposes the VGS
unmount
function through a react ref.Motivation and Context
There is existing logic where the VGS form will call
unmount
when the Form is unmounted from the DOM. However, this function may not always be available if the form is conditionally render (ie. in a modal). This is b/c the component is removed from the DOM before theunmount
function can be called.How Has This Been Tested?
Screenshots (if appropriate):
Types of Changes
Checklist: