Not sure how this can be happening as I am using useRef to pass a reference of my map to the Routing Machine component...
But first here are my dependencies...