This is commonly know as the doorway effect . Our brain treats doorway as an boundary. So it cleares our short term memory so we can have new sights and tasks in new space.
Have you ever entered a room and thought “Why was i here?“

This is commonly know as the doorway effect . Our brain treats doorway as an boundary. So it cleares our short term memory so we can have new sights and tasks in new space.
Have you ever entered a room and thought “Why was i here?“