Skip to content

docs incomplete on invalidate example #5176

@rkristelijn

Description

@rkristelijn

Describe the bug

https://github.com/TanStack/query/blob/main/docs/react/quick-start.md

the code imports things from an external file when I'm interested in what is in these functions:

import { getTodos, postTodo } from '../my-api'

Why not just put the two functions inline so you have one overview?

Your minimal, reproducible example

https://github.com/TanStack/query/tree/main/docs/react/guides

Steps to reproduce

  1. Go to https://github.com/TanStack/query/blob/main/docs/react/quick-start.md
  2. See the functions getTodos and postTodo are not there

Expected behavior

As a developer I would like to understand the full picture:

  1. Go to https://github.com/TanStack/query/blob/main/docs/react/quick-start.md
  2. See the functions getTodos and postTodo

How often does this bug happen?

Every time

Screenshots or Videos

image

Platform

any platform, but using chrome browser ¯(°_o)/¯

Tanstack Query adapter

None

TanStack Query version

DamianOsipiuk docs(vue-query): migrate vue-query docs (#4710) … Latest commit 46fae94 on Dec 29, 2022 History

TypeScript version

DamianOsipiuk docs(vue-query): migrate vue-query docs (#4710) … Latest commit 46fae94 on Dec 29, 2022 History

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions