Refreshing data in a table in Pages

To reply to myself - don’t use script as a datasource but use endpoint then page refreshes correctly