#Allow client directives in markdown custom components.

2 messages · Page 1 of 1 (latest)

lofty ibex
#

I am adding a custom component generated by markdown, an image component override, allowing for lazy loading of the image. Right now, I have a React component that does the dynamic loading of the image and a small proxy Astro component that adds the client:visible and some other defaults to my React component.

It seems like the component never runs client side, even when changing between different client directives.

Has anyone done this with markdown components? or any tip's how I could do something like this?