Load function failure behaviour
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 20.8k
- Forks
- 2.3k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 156
Description
Describe the problem
Can the SvelteKit documentation explain what SvelteKit's precise behaviour is when a load: PageServerLoad function in a +page.server.ts file can't be run because the Node server is unavailable.
Does it attempt a few retries?
What does the load: PageServerLoad function return back to the load: PageLoad function in terms of data payload?
https://svelte.dev/docs/kit/load#Universal-vs-server-When-does-which-load-function-run
Describe the proposed solution
N/A
Alternatives considered
No response
Importance
nice to have
Additional Information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked SvelteKit load documentation, focusing on the Universal vs server section and the +page.server.ts PageServerLoad and PageLoad functions mentioned in the issue. Determine the documented behavior when the Node server is unavailable, including retries and the data payload, then update the documentation so these outcomes are explicit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- documentation, web-dev
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100