Skip to content

Conversation

@bennettdams
Copy link
Contributor

This adds curly brackets to the arrow function which "disables" the implicit return value for TypeScript users, who see an error for this example.

CodeSandbox, which shows the error:

image

https://codesandbox.io/s/laughing-chaplygin-u1mdr?file=/src/App.tsx

Adding curly brackets to arrow function which "disables" the implicit return value for TypeScript users.
@vercel
Copy link

vercel bot commented Apr 25, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tannerlinsley/react-query/HSmrM5pFs8kqaALbwygqruezTN4T
✅ Preview: https://react-query-git-fork-bennettdams-patch-1-tannerlinsley.vercel.app

@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 cb67aea:

Sandbox Source
tannerlinsley/react-query: basic Configuration
tannerlinsley/react-query: basic-typescript Configuration
nice-chaum-vkqt0 PR

@TkDodo TkDodo merged commit 2e8f38c into TanStack:master Apr 25, 2021
@tannerlinsley
Copy link
Member

🎉 This PR is included in version 3.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants