Simplify last visited (#10259)
In this PR, I'm simplifying the lastVisitedView / Object logic: - removing fallback logic as it's not useful - splitting hooks into smaller hooks (to avoir re-renders) - removing componentState on those states that are global
This commit is contained in:
@ -43,7 +43,8 @@ export const RecordIndexPage = () => {
|
||||
mainContextStoreComponentInstanceId,
|
||||
);
|
||||
|
||||
const recordIndexId = `${objectNamePlural}-${contextStoreCurrentViewId}`;
|
||||
// Todo: if we want the recordIndexId to contain the viewId, we need to remove the Effects otherwise we will have race condition on view change
|
||||
const recordIndexId = `${objectNamePlural}`;
|
||||
|
||||
const { objectNameSingular } = useObjectNameSingularFromPlural({
|
||||
objectNamePlural,
|
||||
|
||||
Reference in New Issue
Block a user