Firstly, I am using the mapRef to get the vanilla API for mapbox for use.
I am using turf.js to calculate the bbox from a polygon feature gotten when I draw a polygon