Your listener id (must be unique for all project events)
Your listener function
// Each time the current active project will be deactivated it will display the project id in the console
JMap.Event.Project.on.postDeactivation(
"custom-project-post-deactivation",
params => console.log(`Project id="${params.project.id}" is now deactivated`)
)
JMap.Event.Project.on.postDeactivation
This event is triggered when current active project has been deactived.
When this event is triggered, the project has been deactivated.
Project's data on the map, in the redux state, etc... should not be available anymore.