Skip to content

Conversation

@dimitropoulos
Copy link
Contributor

Hi (again): I finished my cover-to-cover-readthrough of the docs and I thought I'd contribute back some remaining minor things I found. All fairly minor and atomically committed (so feel free to drop any commit you don't want without notice 👍).

since the change to use the object syntax, a few of these fall off the codeblock at 100% zoom (whereas they didn't before).
upon reading though top-to-bottom, since placeholder data's docs define themselves _in terms of_ initial query data, it may make sense to introduce initial query data first
if the purpose of having a return is to really highlight that this can be a function and things can be done inside it maybe adding:

```
// do any work expensive work here
```

inside the curly braces before the return would do a better job?  not sure, but this seems reasonable.  just doing `initialData: getExpensiveTodos` doesn't immediately highlight that this is a function being called (rather than an array of objects or something) so makes sense to leave the noop closure.
@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 3, 2022

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 9248441:

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

@TkDodo TkDodo merged commit 6cfbbed into TanStack:main Nov 3, 2022
@dimitropoulos dimitropoulos deleted the docs-readthrough-2 branch November 3, 2022 15:45
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