I followed Reza Dorrani's brilliant intro to Custom Pages with Model-Driven Apps and created my first Custom Page with a gallery that opens the item's Model-Driven form with OnSelect=Navigate(ThisItem). However if anything gets updated in the form the old data is still shown in the gallery. Only refreshing the page gets the new data loaded. I tried adding a refresh button to the page that calls Refresh(MyDatasource) but aside from that not being a great user experience, it only works on the second click. Any ideas how to solve this? Here's the steps to replicate:
1) Create a new solution
2) Add a new table
3) Populate the table with some test data. In my case Product 1, Product 2
4) Create a new Model-Driven App
5) Add a page to the app using the Model-Driven App template and select the table
6) Add a page to the app using the Custom page template
7) Add a gallery component to the page and set the Datasource to the table added in step 2
😎 Set OnSelect = Navigate(ThisItem)
9) Save and publish your app
10) Play the app and click on an item in the gallery
11) Edit the name field and Save and Close
12) Original name still shows in gallery