SPO allows you to replace the default SP form (edit, view, new) with a customizable PowerApps form. This works great but I've run into some issues:
SPO doesn't refresh the session; it merely replaces the item variable in the form with some type of SharePoint connector-of-sorts. So imagine if the SPO list is "Vendors". I choose Microsoft and then jump over to screen2 to look at its products (which is the result of filtering a secondary list)--this works fine. Now I close the form and choose "Dell". It automatically opens up on screen2 with Microsoft products listed--this is strange. Now I close that window and use SharePoint to create a new Vendor. It opens up on screen2 once again, listing Microsoft's vendors yet again--this is even more strange as a new, unexisting record would not have any products yet.
The intent is simple: start on screen1 everytime a new SharePoint record is pulled up.
The problem is that OnVisible and OnStart do not work, as opening up a record does not invoke these events. The only thing I can think of doing is running an infinite timer that continuously looks at the ID and time, but I'm hesitant to run an infinite loop--unless that's best practice.
Any recommendations?