From ca8dc8d0113fbf6532bf55e4fe6a82a16e7538cd Mon Sep 17 00:00:00 2001 From: MxA <67554982+MohammadxAli@users.noreply.github.com> Date: Sat, 5 Feb 2022 18:27:02 +0330 Subject: [PATCH] docs: fix variable name from `profileData` to `data` in CSR page (#34018) Since the variable name is called `data`, I believe checking `profileData` will always be `undefined`. ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint` --- docs/basic-features/data-fetching/client-side.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic-features/data-fetching/client-side.md b/docs/basic-features/data-fetching/client-side.md index 168bb59967def..97cad41a1a8ae 100644 --- a/docs/basic-features/data-fetching/client-side.md +++ b/docs/basic-features/data-fetching/client-side.md @@ -30,7 +30,7 @@ function Profile() { }, []) if (isLoading) return

Loading...

- if (!profileData) return

No profile data

+ if (!data) return

No profile data

return (