Skip to content

Allow js as a code-snippet language#17

Merged
tannerlinsley merged 1 commit intoTanStack:mainfrom
dglsparsons:main
Jul 19, 2022
Merged

Allow js as a code-snippet language#17
tannerlinsley merged 1 commit intoTanStack:mainfrom
dglsparsons:main

Conversation

@dglsparsons
Copy link
Copy Markdown
Contributor

The react-query documents contain markdown files with js as a code-snippet language.
These show up (incorrectly) as bash in the documentation.

The react-query documents contain markdown files with js as a code-snippet language. 
These show up (incorrectly) as bash in the documentation.
@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 19, 2022

@dglsparsons is attempting to deploy a commit to the Tanstack Team on Vercel.

A member of the Team first needs to authorize it.

dglsparsons added a commit to dglsparsons/query that referenced this pull request Jul 19, 2022
The tanstack.com site shows the code-snippets as `bash` as a fallback,
as js is not expected as a language type. (see
[here](https://github.com/TanStack/tanstack.com/blob/main/app/components/CodeBlock.tsx)
for allowed language types).

In addition to allowing JS as a snippet type (TanStack/tanstack.com#17),
changing the documentation to be `tsx` ensures that syntax
highlighting and the language type appears correct.
dglsparsons added a commit to dglsparsons/query that referenced this pull request Jul 19, 2022
The tanstack.com site shows the code-snippets as `bash` as a fallback,
as js is not expected as a language type. (see
[here](https://github.com/TanStack/tanstack.com/blob/main/app/components/CodeBlock.tsx)
for allowed language types).

In addition to allowing JS as a snippet type (TanStack/tanstack.com#17),
changing the documentation to be `tsx` ensures that syntax
highlighting and the language type appears correct.
TkDodo added a commit to TanStack/query that referenced this pull request Jul 19, 2022
* Change docs code-snippet types to tsx

The tanstack.com site shows the code-snippets as `bash` as a fallback,
as js is not expected as a language type. (see
[here](https://github.com/TanStack/tanstack.com/blob/main/app/components/CodeBlock.tsx)
for allowed language types).

In addition to allowing JS as a snippet type (TanStack/tanstack.com#17),
changing the documentation to be `tsx` ensures that syntax
highlighting and the language type appears correct.

* Apply suggestions from code review

* Update docs/guides/disabling-queries.md

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
@tannerlinsley tannerlinsley merged commit 7b45b4f into TanStack:main Jul 19, 2022
Olaf0703 added a commit to Olaf0703/query that referenced this pull request Feb 28, 2023
* Change docs code-snippet types to tsx

The tanstack.com site shows the code-snippets as `bash` as a fallback,
as js is not expected as a language type. (see
[here](https://github.com/TanStack/tanstack.com/blob/main/app/components/CodeBlock.tsx)
for allowed language types).

In addition to allowing JS as a snippet type (TanStack/tanstack.com#17),
changing the documentation to be `tsx` ensures that syntax
highlighting and the language type appears correct.

* Apply suggestions from code review

* Update docs/guides/disabling-queries.md

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Cute0110 added a commit to Cute0110/TanStack-Query that referenced this pull request Sep 28, 2023
* Change docs code-snippet types to tsx

The tanstack.com site shows the code-snippets as `bash` as a fallback,
as js is not expected as a language type. (see
[here](https://github.com/TanStack/tanstack.com/blob/main/app/components/CodeBlock.tsx)
for allowed language types).

In addition to allowing JS as a snippet type (TanStack/tanstack.com#17),
changing the documentation to be `tsx` ensures that syntax
highlighting and the language type appears correct.

* Apply suggestions from code review

* Update docs/guides/disabling-queries.md

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
SerhiiMisiura added a commit to SerhiiMisiura/TanStack-Query that referenced this pull request Oct 6, 2023
* Change docs code-snippet types to tsx

The tanstack.com site shows the code-snippets as `bash` as a fallback,
as js is not expected as a language type. (see
[here](https://github.com/TanStack/tanstack.com/blob/main/app/components/CodeBlock.tsx)
for allowed language types).

In addition to allowing JS as a snippet type (TanStack/tanstack.com#17),
changing the documentation to be `tsx` ensures that syntax
highlighting and the language type appears correct.

* Apply suggestions from code review

* Update docs/guides/disabling-queries.md

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
gheith-abinader pushed a commit to gheith-abinader/tanstack-query-docs-react that referenced this pull request Sep 21, 2025
* Change docs code-snippet types to tsx

The tanstack.com site shows the code-snippets as `bash` as a fallback,
as js is not expected as a language type. (see
[here](https://github.com/TanStack/tanstack.com/blob/main/app/components/CodeBlock.tsx)
for allowed language types).

In addition to allowing JS as a snippet type (TanStack/tanstack.com#17),
changing the documentation to be `tsx` ensures that syntax
highlighting and the language type appears correct.

* Apply suggestions from code review

* Update docs/guides/disabling-queries.md

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
LeCarbonator pushed a commit to LeCarbonator/tanstack.com that referenced this pull request Jan 11, 2026
Allow js as a code-snippet language
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.

2 participants