diff --git a/packages/r3f/src/main/editable.tsx b/packages/r3f/src/main/editable.tsx index 07f5a8b..a2b6560 100644 --- a/packages/r3f/src/main/editable.tsx +++ b/packages/r3f/src/main/editable.tsx @@ -76,7 +76,10 @@ const createEditable = ( allRegisteredObjects.add(sheetObject) setSheetObject(sheetObject) - if (objRef) objRef!.current = sheetObject + if (objRef) + typeof objRef === 'function' + ? objRef(sheetObject) + : (objRef.current = sheetObject) editorStore.getState().addEditable(storeKey, { type: actualType,