QwikDev / QwikDev/qwik

[📖] useServerData (in v2)

Open
#7,955 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs PR welcomed
Dominant language
TypeScript
Stars
22.1k
Forks
1.4k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

Suggestion

The documentation for useServerData is currently empty.

@manucorporat mentions in https://github.com/QwikDev/qwik/issues/4506#issuecomment-1597801559:

it's a very low level API, that most developers should never have to use

Should it be mentioned in the docs?

More points:

  • It's not clear in what contexts useServerData should work. Is it supported in the routeLoader$, for example?
  • What is the recommended (high level) alternative for a global server context accessible in routeLoader$, onStaticGenerate, ... ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the currently empty useServerData documentation and the discussion in issue #4506 linked from this report. Clarify which contexts support useServerData, including routeLoader$ if applicable, and document the recommended high-level alternative for shared server context; the documentation is complete when these questions are answered.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.