-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guard hooks are always executed on the server when rendered for the first time #2104
Comments
Are you using pre-rendering? Is it called on the server side or not at all? |
It's called on the server side. |
Can you elaborate your use case for wanting it to run on the client-side while using SSR (without pre-rendering)? (See also #1916 Client-only guard() hook for pre-rendered pages.) |
By the way, as a newcomer who has just tried vike, I find vike's documentation to give me a sense of confusion, hard to understand and difficult to find relevant information. Is there a plan to rewrite the documentation for 1.0? I've used next, remix, nuxt. After researching vike for a few days, I think I like the API design of vike more than the others. At the moment it feels like the documentation is a big problem, and it's very tiring to read. If 1.0 needs more marketing like you said, then I feel the documentation should be completely rewritten before marketing. |
I see and, indeed, it's similar to #1916 — closing this as duplicate.
Except of adding more content and polishing the current content (fixing English mistakes and make it easier to understand), we actually don't plan to restructure the documentation... Do you think there is a structural problem beyond more (polished) content? Critical honest feedback welcome. Also, we've been improving the search UX but maybe there is still room for improvement. |
Just a few personal opinions for reference: Documentation section
Experience the pain points found within two days (and did not fully review the relevant issues or discussions, if there are duplicates, please understand):
It's just a two-day trial, and it's just my personal experience as a newbie to Vike, and I think I'll come back when 1.0 is released, but at the moment Vike is not available to me. |
👍 #2112
👍 #2111
👍 #2109
👍 #2110
We believe having a bunch of static
👍 #2107 The rest is already on the radar:
It's on the radar and high prio: #1476.
We're currently working on
Yes, that will be the case. (You can already try it out with
That's very much what we try to achieve with our Guides and API sections but, yes, we probably fail to provide enough information in Guides. Also, maybe we should move some API content to Guides, I'll be more thoughtful about that.
I'll disagree on that one, because I think that being able to see all documentation pages at a glance makes navigating the documentation significantly easier. As we add more documentation pages, this will become even more valuable.
Thank you for your feedback. Looking forward to welcome you back after the |
Description
I don't know if I'm mistaken, but the documentation says that when defined as Client-side only
data()
, the first timeguard()
is executed is on the client side. But the reality is thatguard()
is not executed on the client side when it is first renderedThe text was updated successfully, but these errors were encountered: