Skip to content

Conversation

@dimitropoulos
Copy link
Contributor

I'm doing a full read-through of the docs, and I noticed a few minor things along the way. I'm very low-ego about these changes, but thought I'd submit them. I'd be happy to pull each commit into separate PRs if you like, but each commit has a description and should be atomic.

Definitely more to come, but I thought I'd submit what I have for today.

two of these have periods and two don't... so I looked around at what is done elsewhere and took my best guess
at this point in the readthrough, this is the very first time I'm seeing anything about "options" and having a link to one is nice, just to quickly see what they look like and hop right back to this page.  I'd love to add some docs to the 4 that are mentioned in the next paragraph but they don't seem to have a way to link to them since they're contained in an unordered list on the useQuery page
I don't see how to run the docs site locally to test this, but at least on GitHub's markdown parser this would really help align the quote block with the associated bullet (as it is today is sorta hard to follow because some are global and some are attached to bullets, yet they're all at the same level).

feel free to drop this commit if it doesn't work for the actual markdown parser.
check out https://tanstack.com/query/v4/docs/guides/background-fetching-indicators#displaying-global-background-fetching-loading-state

and see that the section that's an h1 at the bottom is pushed pretty hard up against the codeblock before it.  I think this is some kind of tailwind problem, but it's a win-win because a page having multiple h1 elements is an accessibility nit anyways
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ad1c801:

Sandbox Source
@tanstack/query-example-react-basic-typescript Configuration
@tanstack/query-example-solid-basic-typescript Configuration
@tanstack/query-example-vue-basic Configuration

```

# Displaying Global Background Fetching Loading State
## Displaying Global Background Fetching Loading State
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BEFORE AFTER
Screenshot_20221031_155131 Screenshot_20221031_155229

@TkDodo TkDodo merged commit 66ab6b5 into TanStack:main Nov 1, 2022
@dimitropoulos dimitropoulos deleted the docs-readthrough branch November 1, 2022 12:04
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