Skip to content

fix(session): use @solidjs/start/http instead of vinxi/http#1470

Open
tknkaa wants to merge 2 commits intosolidjs:mainfrom
tknkaa:fix/session-use-start-http
Open

fix(session): use @solidjs/start/http instead of vinxi/http#1470
tknkaa wants to merge 2 commits intosolidjs:mainfrom
tknkaa:fix/session-use-start-http

Conversation

@tknkaa
Copy link
Copy Markdown

@tknkaa tknkaa commented Apr 25, 2026

  • I have read the Contribution guide
  • This PR references an issue (except for typos, broken links, or other minor problems)

Description(required)

The session.mdx example imports useSession from vinxi/http, but this causes a runtime error in SolidStart v2 default setup (created via CLI).

Changing the import to @solidjs/start/http resolves the error.

Related issues & labels

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 25, 2026

Deploy Preview for solid-docs ready!

Name Link
🔨 Latest commit f5664cc
🔍 Latest deploy log https://app.netlify.com/projects/solid-docs/deploys/69ed1c2ecf0d0f00081b7f2c
😎 Deploy Preview https://deploy-preview-1470--solid-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.


```ts title="src/lib/session.ts"
import { useSession } from "vinxi/http";
import { useSession } from "@solidjs/start/http";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a SolidStart v2 change correct?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

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.

[Content]: useSession example in session.mdx breaks with SolidStart v2 default setup

2 participants