ProductPage: Unable to detect 'Next' and 'Prev'

I have the need to use the

ProductPage.getProduct()

function to load and display additional information about a product.

The product will be returned as expected on initial page load. However, if a user clicks ‘Next’ or ‘Prev’ there is no event for me to react to and fetch the product anew.

Is this a missing feature of Wix Code or is there some other API I’m missing?

Solution:

Use the

wixLocation.onChange

event.