Reload a dataset when an item changes

Hello, I would like to reload a dataset when the url of a Wix Store item page changes. Can you help me write the code?
Thanks

Hi Maxime . To refresh a dataset you can simply use $(‘#yourdataset’).refresh() , however you need to place this inside of onChange event on wixLocation just like this wixLocation . onChange (( location ) => { $(‘#yourdataset’).refresh() ;}).
This code should go inside onReady.
Thank you

let me know if this makes sense.

Perfect Thank you