We have the following problem with this solution, which we have implemented with a custom saga, which dispatches a Push-Activity with following descriptor, to load the data and display a form instead of an overview:
{
"module":"some-module"
"instance":"Some_DM/d6512620-3007-4b30-82c4-48433957ac70"
"conversation":"d6512620-3007-4b30-82c4-48433957ac70"
}
The tab in the MainMenu is no longer actively displayed now, because the descriptor from menu.initialActivity only has:
{
"module":"some-module"
}
I found following part in the MainMenu.tsx A12-Component in the client-core (which is internal):
const active =
topLevelActivitiesDescriptors.some(activity =>
deepEqual(activity, menu.initialActivity?.descriptor)
) ||
(children !== undefined && children.some(child => child.active === true));
In our case the activity and menu.initialActivity?.descriptor are different, which is the reason why the tab is not active.
Is there a simplier way, to hook in the menu items to update the check if an item is active instead of copying the MainMenu Component and customize it?