Skip to content
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

feat: support hydrate option #432

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yonecdeng
Copy link

Description

I wanted my application to hydrate for faster TTI so I made this change.

Linked Issues

#410

Additional context

I would like to ask what are the considerations for using createApp on the client side instead of hydration, and would it make sense if I give into using hydration?

src/types.ts Show resolved Hide resolved
@antfu
Copy link
Member

antfu commented Dec 11, 2024

I don't honestly know why I coded like that 😅 Maybe I didn't really understand well how Vue SSR works. Let's add the option first and consider how we should have the default later

@BuptStEve
Copy link

single-page should also be added...

@yonecdeng
Copy link
Author

single-page should also be added...

can you give more detail?

@BuptStEve
Copy link

single-page should also be added...

can you give more detail?

https://github.com/antfu-collective/vite-ssg/blob/main/src/client/single-page.ts

const app = client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants