Hi,
We’re facing some problems with navigation between pages of the application after migrating to 2024.06-ext1. We’ve followed this suggestion from the migration docs in regards to Activity handling changes to fix some of our components:
// Client 15 and later
export function NewCustomViewComponent2(props: View): JSX.Element | null {
const activity = useSelector(
ActivitySelectors.activityById(props.activityId)
);
// note that in some cases the activity might not exist anymore
if (!activity) {
return null;
}
Now, if such custom component is placed on a Form Component, then trying to navigate from it (let’s say selecting another item from Overview Component using Master Detail Flow) results in following error:
Rendered fewer hooks than expected. This may be caused by an accidental early return statement.
Is it a know issue?
Are there any solutions to mitigate it?
What can be the root cause of it?