Browse Source

[Beta] fix typo (#5082)

main
zqran 2 years ago
committed by GitHub
parent
commit
d1fee87a0f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/content/apis/react/Suspense.md

2
beta/src/content/apis/react/Suspense.md

@ -38,7 +38,7 @@ Suppose that `Comments` takes longer to load than `Post`. Without a Suspense bou
Because of the Suspense boundary, `Post` doesn't need to wait for `Comments`. React renders `LoadingSpinner` in its place. Once `Comments` finishes loading, React replaces `LoadingSpinner` with `Comments`.
Suspense will never show unintentional "holes" in your content. For example, if `PhotoAlbums` has loaded but `Notes` have not, with the structure below, it will still show a `LoadingIndicator` instead of the entire `Grid`:
Suspense will never show unintentional "holes" in your content. For example, if `PhotoAlbums` has loaded but `Notes` have not, with the structure below, it will still show a `LoadingSpinner` instead of the entire `Grid`:
```js {4-7}
<>

Loading…
Cancel
Save