---
title: "Comment by Tarun Sharma on \"React error #418: fixing a matchMedia hydration mismatch with useSyncExternalStore\" | Hashnode"
description: "For the spotlight, one thing to check is which pointer query you use. (pointer: fine) reflects the primary input, so a touch laptop or a tablet with a mouse att"
url: "https://hashnode.com/posts/react-418-hydration-matchmedia/6af3b009c068f38b85719849/comment/6af47b7fba1be5c29ce20b4e"
---

[Discussion](https://hashnode.com/posts/react-418-hydration-matchmedia/6af3b009c068f38b85719849)

Comment [React error #418: fixing a matchMedia hydration mismatch with useSyncExternalStore](https://hashnode.com/posts/react-418-hydration-matchmedia/6af3b009c068f38b85719849)

[Tarun Sharma](https://hashnode.com/@101beardo)

[Nov 11](https://hashnode.com/posts/react-418-hydration-matchmedia/6af3b009c068f38b85719849/comment/6af47b7fba1be5c29ce20b4e)

For the spotlight, one thing to check is which pointer query you use. (pointer: fine) reflects the primary input, so a touch laptop or a tablet with a mouse attached can report differently than you expect. If the overlay should only run when a real cursor exists, (hover: hover) and (pointer: fine) together, or any-pointer: fine, is the safer condition.

[Mohamed Gado](https://hashnode.com/@mohamedgado)

[Nov 14](https://hashnode.com/posts/react-418-hydration-matchmedia/6af3b009c068f38b85719849/comment/6af47b7fba1be5c29ce20b4e#reply-6af825a3eff54b7514e0ad7f)

Good point. The spotlight is decoration, so the worst case is a tablet with a mouse that never sees it, which I can live with. If I wanted it there, I'd use any-pointer: fine, since (hover: hover) and (pointer: fine) still only checks the primary input.
