Solution with an in-memory cache
New API call made after a key expires, a page is reloaded or the provider is unmounted
Home page
On this page we use the
useVisitorData
hook with default settings and identification is performed as soon as the page loads. This is the most common use-case.You can open the Network tab in your browser Dev Tools and see new requests being made depending on the caching algorithm as you unmount the component with the fingerprint and mount it again thus calling the useVisitorData
hook.
Visitor ID: not established yet