Firebase snapshot from import module

i responded in stackoverflow…

but the gist is that the returnObject should be a state variable