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: generalization around fetching data #10

Closed
wants to merge 1 commit into from

Conversation

lourot
Copy link
Contributor

@lourot lourot commented Aug 21, 2023

Added value:

  1. if the use wants to define something else than title, they don't need us to extend the passToClient list anymore.
  2. return types for onBeforeRender()
  3. comments

Added value:
1. if the use wants to define something else than
   `title`, they don't need us to extend the
   `passToClient` list anymore.
2. return types for onBeforeRender()
3. comments
@brillout
Copy link
Member

Blocker: #4.

@brillout
Copy link
Member

Blocker: #4.

Fix released in vite-plugin-ssr@0.4.141.

Btw. I've been thinking a bit about this, and I think the best would be a new hook /pages/star-wars/+data.js that is baked into Vike Core.

@lourot
Copy link
Contributor Author

lourot commented Sep 20, 2023

Most of this isn't needed anymore thanks to #4, closing. I might create another tiny PR containing the other minor useful bits that were in this PR.

@lourot lourot closed this Sep 20, 2023
@lourot lourot deleted the feature/additional-data branch September 20, 2023 14:39
lourot added a commit that referenced this pull request Sep 21, 2023
Added useful types and comments.
Spin-off of #10
lourot added a commit that referenced this pull request Oct 23, 2023
Added useful types and comments.
Spin-off of #10
brillout pushed a commit that referenced this pull request Oct 23, 2023
Added useful types and comments.
Spin-off of #10
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.

2 participants