Last I checked, getCurrentInstance was removed from the docs because it's an internal API.
Check the details here