sanity-blocks-vue-component icon indicating copy to clipboard operation
sanity-blocks-vue-component copied to clipboard

'Catch All' type

Open spacedawwwg opened this issue 4 years ago • 1 comments

Is it possible to define a 'catch all' serializer?

Use case is to have a 'Fallback' vue component that does not break the build but simply renders a warning explaining the serializer hasn't been set

spacedawwwg avatar Oct 24 '21 22:10 spacedawwwg

Hey @spacedawwwg. It looks like this kind of thing was implemented in at least one official package so I think it would be a good idea to follow suit.

It's been a while since I've looked at the code but I believe there is already some logic that just returns if no matching serializer is found, so I assume it would be possible to adapt that. I think this is a good issue to prioritise so thanks for raising it.

rdunk avatar Oct 25 '21 11:10 rdunk