query icon indicating copy to clipboard operation
query copied to clipboard

v2 documentation loading v3 documentation

Open twolfson opened this issue 3 years ago • 1 comments

Describe the bug

Love the repo and thank you for your work! It looks like the https://react-query-v2.tanstack.com/guides/mutations is loading the content from https://react-query-v3.tanstack.com/guides/mutations

i.e. v2 doesn't have mutateAsync yet it's documented (and was a red herring for me)

https://github.com/TanStack/query/blob/v4.8.0/docs/guides/migrating-to-react-query-3.md#mutationmutate-no-longer-return-a-promise

As a workaround, I can navigate to https://web.archive.org/web/20210307044920/https://react-query-v2.tanstack.com/docs/guides/mutations to get the proper content, but that seems non-ideal

I'm not sure what your LTS is for v2 docs, so understandable if this isn't a priority =/

Your minimal, reproducible example

https://react-query-v2.tanstack.com/guides/mutations

Steps to reproduce

  1. Navigate to https://react-query-v2.tanstack.com/guides/mutations

Expected behavior

Expect documentation to not mention mutateAsync yet it does

Expect documentation to match https://web.archive.org/web/20210307044920/https://react-query-v2.tanstack.com/docs/guides/mutations

How often does this bug happen?

Every time

Screenshots or Videos

image

Platform

macOS Firefox 105.0.1

react-query version

v2.26.4

TypeScript version

No response

Additional context

No response

twolfson avatar Sep 30 '22 22:09 twolfson

Can also view them here as a workaround: https://github.com/TanStack/query/tree/2.x/docs/src/pages/docs

timkindberg avatar Oct 19 '22 19:10 timkindberg

I think the v2 site is now completely down. The last v2 release happened over 2 years ago. I would consider it dead (we're working on v5 already). Please look at the markdown files in the repo as linked above.

TkDodo avatar Jan 26 '23 05:01 TkDodo