#client:load component does not work with cloudflare adapter
2 messages · Page 1 of 1 (latest)
Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not contain specific information about the interaction between Astro's client:load directive and the Cloudflare adapter.
However, I can tell you that the client:load directive in Astro is used to make a component interactive as soon as possible by loading and hydrating the component's JavaScript immediately on page load source (https://docs.astro.build/en/reference/directives-reference/#client-directives). On the other hand, client:only skips HTML server-rendering, and renders only on the client. It acts similarly to client:load in that it loads, renders, and hydrates the component immediately on page load, but you must pass the component’s correct framework as a value source (https://docs.astro.build/en/reference/directives-reference/#clientonly).