Replies: 1 comment
-
Seems reasonable to me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
clientOnlyValues
is a staticSet
containing only official integrations. Allowing a custom integration to register themselves with this under some name would provide fullclient:only
support.Background & Motivation
Client-only rendering with
@analogjs/astro-angular
or any other custom integration will not work when there are multiple renderers in the Astro configuration.Aside from the the officially supported renderes, as defined in the
clientOnlyValues
, there is a fallback to guessing based on the component extension. This will not work well for Angular as their default naming scheme will result incomponent
and it makes no sense for a custom integration to call itself that.Proposal
clientEntrypoint
that includes registration of aclient:only
renderer under the integrations name.AstroRenderer
to allow a short alias for the renderer so that the directive can be specified more simply, eg.,client:only="angular"
Beta Was this translation helpful? Give feedback.
All reactions