You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As things currently stand, Doc.Hydrate does not work with a quoted argument, so Doc.Hydrate <@ e @> will, unexpectedly, yield no server-rendered HTML. There are ways to argue that this is by design, and that the solution is to use Doc.Hydrate(e) instead, i.e. relying on the implicit auto-quoting mechanism.
I am filing this ticket to guard against unexpected situations when using quoted arguments, so at a bare minimum a warning is raised with their source location to aid debugging.
However, I would also like to explore fixing the gap and making this work for the quoted case as well, AFAIK, there is no real good reason why that should fail. If there is, please comment below.
The text was updated successfully, but these errors were encountered:
As things currently stand,
Doc.Hydrate
does not work with a quoted argument, soDoc.Hydrate <@ e @>
will, unexpectedly, yield no server-rendered HTML. There are ways to argue that this is by design, and that the solution is to useDoc.Hydrate(e)
instead, i.e. relying on the implicit auto-quoting mechanism.I am filing this ticket to guard against unexpected situations when using quoted arguments, so at a bare minimum a warning is raised with their source location to aid debugging.
However, I would also like to explore fixing the gap and making this work for the quoted case as well, AFAIK, there is no real good reason why that should fail. If there is, please comment below.
The text was updated successfully, but these errors were encountered: