Skip to content

Commit 61e9d05

Browse files
committed
feat(ObjectForm): add lifecycle logging for component mount and unmount
1 parent ea2d988 commit 61e9d05

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/plugin-form/src/ObjectForm.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ export const ObjectForm: React.FC<ObjectFormProps> = ({
6565
const [loading, setLoading] = useState(true);
6666
const [error, setError] = useState<Error | null>(null);
6767

68+
// Track component lifecycle
69+
useEffect(() => {
70+
console.log('[ObjectForm] MOUNT - objectName:', schema.objectName, 'hasDataSource:', !!dataSource);
71+
return () => {
72+
console.log('[ObjectForm] UNMOUNT - objectName:', schema.objectName);
73+
};
74+
}, []);
75+
6876
// Check if using inline fields (fields defined as objects, not just names)
6977
const hasInlineFields = schema.customFields && schema.customFields.length > 0;
7078

0 commit comments

Comments
 (0)