stb-kslater3 / Admin_Checklist

Tool used by Sales Team to determine Quotes, and other things
0 stars 0 forks source link

New Admin Button requires refresh #4

Closed stb-kslater3 closed 3 years ago

stb-kslater3 commented 3 years ago

What you expect to happen when you click the new admin button is to be taken to the admin with all the data loaded etc., instead it is requiring a refresh of the page to take affect, and the same goes for when you go back to the opportunity's page. There must be something I need to do with the Asynchronous timing between when I create the new admin and when I redirect the browser to the admin page with the URL Parameter passed. I think that it is redirecting before the Insert was finished.

stb-kslater3 commented 3 years ago

I found out that I made an onclick handler for the lwc_navigator that goes ahead and navigates you rather than calling navigate when you manually do it so that you are in control and can make sure to have made the proper updates to things like when you create an admin and set this opportunity as its owner before sending you to the app, etc.