I am facing an odd issue with firebase's firestore emulator. When i start the emulator, and check the emulator's firestore UI, it shows that no data exists in the db yet.
Then, i try query the firestore emulator for data from my react-native app and surprisingly, old data from previous session comes back. I am being returned data i added in a previous session, yet it is not visible on the emulator UI.
I was under the impression that shutting down the emulator removes any data added during that session so, when starting the emulator next time why am i seeing data from my previous session? Its as if its being cached somehow somewhere...?
I have seen multiple posts on stack-overflow about the --project
parameter being supplied to firebase emulators:start
terminal command. This seems to make no difference whatsoever to my case.
I would appreciate any suggestions on resolving.