SIGN IN SIGN UP
TanStack / query UNCLAIMED

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

0 0 0 TypeScript

docs: Change docs code-snippet types to tsx (#3857)

* 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 (https://github.com/TanStack/tanstack.com/pull/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>
D
Douglas Parsons committed
75cea4d537404b45121a67eb76583fd76117b964
Parent: 8629fa7
Committed by GitHub <noreply@github.com> on 7/19/2022, 1:14:39 PM