React, Client-side routing, shadow DOM and Adsense... Do pageviews register?

Has anyone used adsense (or any advertiser) in their react app (with client-side routing)?

I just realized that page views may not register correctly because either (1) the client-side routing lets the UI change without a page reload or (2) the shadow-dom is changing/updating small pieces of HTML instead of entire HTML chunks.

Has anyone run into this? Before I go too far down that rabbit hole myself…