[Feature request] Add a component wrapper prop
selbekk opened this issue · 0 comments
selbekk commented
I would love to wrap all of my type serializers in error boundaries. Instead of adding one to each of my serializers, I would love to have a prop that I could provide a component that wraps all serializers.
Example usage:
<PortableText
value={value}
components={components}
componentWrapper={({ children }) => (
<ErrorBoundary fallback={<div>Error</div>}>
{children}
</ErrorBoundary>
)}
/>
Is this something you could look into?