I created a new custom Block and wanted to inject an IOptionsSnapshot to read my appsettings.json values. The problem is that I get an error saying there is no parameterless constructor for my custom block.
Is there a way to somehow do this injection or is this a limitation in Piranha and custom blocks.

At the moment neither
FieldsnorBlockssupports parameter injection into the constructor, howeverFieldshave two initialization methods that both support parameter injection,Init()andInitManager(). Given how models are constructed the easiest solution would probably be to add the corresponding init methods toBlocksas well.Feel free to open an issue/feature request at the GitHub repo and we can take the discussion from there!