i responded in stackoverflow…
but the gist is that the returnObject should be a state variable
returnObject