Whoops I seem to have accidently
# show-and-tell
d
Whoops I seem to have accidently rendered the Features section of UmBootstrap in Astro via Umbraco Content API. I really wanted to do this using HTMX creating a live data island, I have the raw json coming in via HTMX but have been unable to render it so far. Mostly Typescript errors. I am using a component but I think that the HTMX may need to com in via a partial. I will investigate further but if anyone has already done this I'd be grateful for any tips //cc @Richard Soeteman @Harry Gordon https://cdn.discordapp.com/attachments/905057811682193429/1230797972963459102/Code_ZHLwWQuS7a.mp4?ex=6634a0ef&is=66222bef&hm=26fa11a789aef817b89aae927f4f00ff1190e8e6b5d8586b9822fac3b88be65e&
p
Hey Dean. I've been doing a fair amount of work with Astro recently, so might be able to help. I'm not 100% sure on what issue you are explaining, but it could be that you need to set a 'client directive' to tell Astro that your 'island' is dynamic. https://docs.astro.build/en/reference/directives-reference/#client-directives
d
I think you are right and saw that at some point. I don't know how beneficial it would be to have lived data versus some of the workfkows that publish the static pages on publish in Umbraco.
p
Yeah, definitely value in it for sure. Astro's different in it's approach, as it ships zero JS by default, and you have to tell it if a component is dynamic, which essentially makes it an 'island'. I think going along with this thinking is a good approach. So endeavour to make everything static, unless there is good reason for it not to be.
r
hey, We're currently doing Umbraco - Gatsby builds but are looking at switching to Astro Appreciate all the info here! If anyones up for setting some type of working group / sharing around Umbraco & Astro would be super keen to be involved. Though we are very early in our investigations so we'd probably be getting more info that we're giving!
p
Hey @Rich G . That's cool... I also migrated from Gatsby recently. It would be worth checking out this thread: https://discord.com/channels/869656431308189746/1217409689588072519 Lots of useful links in there. Feel free to reach out if you get stuck on anything.
r
Ace! I didn't know that existed, gonna give it a read