When we have succesfully committed the changes, we should show the final commit information to the user before quitting the app. To do this, we will need access to the AppState from the main function. This means that we will need to actually create the AppState there and pass it down to the MainComponent.
When we have succesfully committed the changes, we should show the final commit information to the user before quitting the app. To do this, we will need access to the
AppState
from themain
function. This means that we will need to actually create theAppState
there and pass it down to theMainComponent
.Extracted from:
https://github.com/lucas-labs/coco/blob/7f4ce1ee5829f7c4d91756dc925ddeb2b4f936cd/coco/src/main.rs#L55-L60