Using useVisitorData in NextJs '12.1.5' don't response data in useEffect
rusbelllozano-kiwi opened this issue · 0 comments
rusbelllozano-kiwi commented
We are using fingerprintjs in NextJs but always in first load don't get data
How can I get the method information?
import { useVisitorData } from '@fingerprintjs/fingerprintjs-pro-react'
export default function Home() {
const { isLoading: isLoadingFingerprint, error, data, getData } = useVisitorData({ extendedResult: true }, { immediate: true })
useEffect(() => {
getData({ ignoreCache: false })
console.log(window.location.href)
console.log(data)
}, [])