+ * {(items) => {items.map((e, info) => children(e, info))}
}
+ *
+ * )
+ * }
* )
*
- * // Programmatic field access (no JSX needed)
- * export const Uploader = withCollector(
- * function Uploader({ field, fileType }) { ... },
- * (props) => {
- * const entity = props.field.$entity
- * for (const ext of props.fileType.extractors) entity[ext.fieldName]
- * return null
- * }
+ * // Two-arg: explicit staticRender for components with hooks or custom collection
+ * export const SelectField = withCollector(
+ * function SelectField({ field, children }) { ... },
+ * (props) => props.children(props.field.$entity)
* )
* ```
*/
export function withCollector