Skip to content

Remove unnecessary data truthiness check in Suspense example #9485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2025

Conversation

davidmoranetflix
Copy link
Contributor

Isn't data guaranteed to be truth-y, as part of the larger principle of "Focus on the success case"?

We shouldn't need to check for it in the JSX. It's a bit misleading for those learning, too.

I'm assuming this is just a typo.

(Thanks to Jan Claasen for helping verify this issue.)

Isn't data guaranteed to be truth-y, as part of the larger principle of "Focus on the success case"?

We shouldn't need to check for it in the JSX.
@TkDodo TkDodo merged commit 1e83468 into TanStack:main Jul 24, 2025
1 check passed
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