question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto-generated endpoints from component code

See original GitHub issue

good point via Twitter:

The current docs confused me a bit as a Next.js user by comparing load to getServerSideProps/getStaticProps, while it’s more like getInitialProps in the way that it exposes everything to the client.

They currently say this, which isn’t totally accurate:

load is the SvelteKit equivalent of getStaticProps or getServerSideProps in Next.js or asyncData in Nuxt.js.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

6reactions
egoistcommented, Apr 1, 2021

Will SvelteKit ever consider adding a getServerSideProps equivalent then? 🤔

4reactions
Rich-Harriscommented, Apr 1, 2021

Not exactly — firstly there’s a bug (#823), but secondly that will also prevent any interactivity at all on the page, which might coincide with your requirements but often won’t. Partial hydration needs solving at a lower level (i.e. Svelte) if we want it in SvelteKit

Read more comments on GitHub >

github_iconTop Results From Across the Web

Autogenerating Configurations for Components to Confluent ...
Use the following script to autogenerate delta configuration files for Confluent Platform components and clients connecting to Confluent Cloud. These delta ...
Read more >
How to automatically generate REST endpoints from a file ...
I built a class that generates code for all the paths via 2 template files and saves the resulting java class in the...
Read more >
An Insight into APIMatic's Autogenerated SDKs
APIMatic autogenerates SDKs in multiple languages so developers can consume APIs in their favorite development environment with less code ...
Read more >
Component autogeneration - Magnolia CMS Docs
Autogeneration creates components inside an area automatically without editor involvement. Anything you define under the content node will be autogenerated.
Read more >
Generate GraphQL Types with Apollo Codegen Tutorial
TypeScript GraphQL Code Generator – Generate GraphQL Types with Apollo Codegen ... Download any GraphQL schema using a GraphQL endpoint ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found