Why I need 3 hooks in a custom directive which adds classes if I'm using SSR? #13000
Unanswered
GJGabor
asked this question in
Help/Questions
Replies: 1 comment 1 reply
-
Well, I think it's pretty self-explanatory why you would need two, at least: There are no HTML elements to work with on the server, it's just string concatenation. So you need a separate way to apply element attributes (and only for that use case!) during SSR. I can't really speak about the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a custom directive which adds classes to the element. I realized I have to:
Here is my code:
Why I need to add all 3 hooks? It would be better to have 1 hook for the client side and 1 hook for the server side. Can anyone please explain the reason?
Beta Was this translation helpful? Give feedback.
All reactions