guillaumeparis2000 / react-piwik

Library that allow to connect piwik with the react-router and track custom events
31 stars 17 forks source link

Crashing with react-router 6 and history 5 #46

Closed peterbartos closed 1 year ago

peterbartos commented 2 years ago

Crashing with react-router 6 and history 5 on...

https://github.com/guillaumeparis2000/react-piwik/blob/882ee592c8c3344614264d86c7c1d979b840b8a7/src/React-Piwik.js#L111

history.listen passes...

 {
    "action": "PUSH",
    "location": {
        "pathname": "/dashboard/transactions",
        "search": "",
        "hash": "",
        "state": null,
        "key": "xjmh8d9f"
    }
}