when a lodestone compass is connected to a lodestone, it will spin randomly like a normal compass, and only the version that is shown in hand when held will actually point to the lodestone. To be clear, even when the compass is held in hand, the sprite in the hotbar/ inventory is is still spinning randomly.
We're tracking this issue as MCPE-80218, 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.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki