Closed musabgulfam closed 2 years ago
@musabgulfam if you change any of the origin
or destination
values it will re-render so onReady
will fire again you might also use resetOnChange: true
Thank you very much @zoolle, the issue is resolved.
How do I get the duration of the trip, one way is to get it from the
onReady
prop. But is there anyway to get the duration afterwards, becauseonReady
callback is only executed once the direction is in 'ready' status.