Closed i8ramin closed 4 years ago
Maybe the docs updated since this was posted, but the second parameter is the pluginOptions
object (aka the object of options in gatsby-config.js
).
haha, tis gatsby! so many un-published nuances of their API. things seem to keep changing.
did this solve your Q? wants to add something into our docs about this?
i just merged your other PR btw.
Hi. Looking at the source for
gatsby-brower.js
, where exactly does the 2nd paramter{ trackPage }
come from?https://github.com/benjaminhoffman/gatsby-plugin-segment-js/blob/master/src/gatsby-browser.js#L1
According to the Gatsby Browser API docs,
onRouteUpdate
has only 1 parameter, de-structured as{ location, prevLocation }