The plus button shows a dialog(component) there a new record can be added. What is the best way to pass the added ID of the new record back to the first page?
After some search I found that there are Two ways
1- Using app state variable, which I think it's not practical.
2- Using navigation which, is not this approach cases overhead?
I want to know is there another way or which way is the best.?
Any detail step by step explanation will be helpful...
First page
dialog (component)