Skip to content

fix: Transform Solid docs hook calls correctly#720

Open
GEREGUR wants to merge 1 commit intoTanStack:mainfrom
GEREGUR:solid_docs_fix
Open

fix: Transform Solid docs hook calls correctly#720
GEREGUR wants to merge 1 commit intoTanStack:mainfrom
GEREGUR:solid_docs_fix

Conversation

@GEREGUR
Copy link

@GEREGUR GEREGUR commented Feb 17, 2026

Summary

  • Adds solidTransform.ts with regex-based transformation to convert React-style useQuery({...}) to Solid-style useQuery(() => ({...}))
  • Integrates transformation in documents.server.ts before the broken string replacements
  • Skips the incorrect string replacement rules for Solid hooks since the transformation handles it properly

- Add solidTransform.ts module with regex-based transformation
- Transform useQuery({...}) to useQuery(() => ({...})) for Solid
- Skip broken string replacements in replaceContent
- Apply transformation before string replacements
@netlify
Copy link

netlify bot commented Feb 17, 2026

👷 Deploy request for tanstack pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 8c4d0c6

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.

1 participant