#Event listeners question

5 messages · Page 1 of 1 (latest)

tribal ridge
#

How crazy of an idea is it to try and get an element listener on an SSR application? I assume it's completely delusional.

For this app I'm querying blog posts from Sanity through a normal-ish fetch on an SSR component, since this component needs to be fetching data on a "preview" mode. I assumed a script tag with a listener for updates inside could do it? Feedback appreciated!!

violet zinc
tribal ridge
violet zinc
#

so you got the same sanity example working without Astro but not with Astro ? I can't promise I figure this one out as I'm still not familiar with Sanity, but I'd definitely give it a try,... if you post a minimal reproduction repo, that only focus on the non working part, worst case it make it much easier for others familiar with Sanity to help.