Custom Widget grist.onRecords

I setting up a simple report for customers and services using the vuzejs template language.
You can view on this public document:

I have a little problem, If I select a different customer, the report does not update. . I could reload the frame, that the right content get displayed

I put all the java script in the same file to better debug the problem. I guest that it has to do with the life of the data variable. but I am not sure…

how can i force a reload of the custom widget content?

Hi @JuanJosePablos, to get a notification when the selected row changes, you could use grist.onRecord (note the singular onRecord versus the plural onRecords)

I see one example of it being used along with Vue.js here: