when ever i join a realm then leave the realm and join any of my worlds my data on that world is reset. All of my scoreboards everything even my inventory and tags that i had on my-self. but when i leave and rejoin my world its back to normal. and if i where to give myself something when that glitch happens and do the glitch again i would have the stuff (if i gave my-self anything) from the last time i did that glitch. also my location in the game is reset as if i just join the world for the first time. basically when that glitch happens it just acts if i am a new player but also a owner so my inventory dosent save but i still get to be an op.
Related issues
Comments

Thank you for your report!
We're tracking this issue in MCPE-164765, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 BDS Wiki – 📖 FAQs