Skip to content

Commit 2c49c2d

Browse files
committed
translate renderToReadableStream page
1 parent 4b44696 commit 2c49c2d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/content/reference/react-dom/server/renderToReadableStream.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ async function handler(request) {
198198
}
199199
```
200200
201-
In the example above, the `bootstrapScriptContent` option adds an extra inline `<script>` tag that sets the global `window.assetMap` variable on the client. This lets the client code read the same `assetMap`:
201+
Yukarıdaki örnekte, `bootstrapScriptContent` seçeneği client tarafında global `window.assetMap` değişkenini ayarlayan ekstra bir inline `<script>` etiketi ekler. Bu sayede client kodu aynı `assetMap`’i okuyabilir:
202202
203203
```js {4}
204204
import { hydrateRoot } from 'react-dom/client';
@@ -207,15 +207,15 @@ import App from './App.js';
207207
hydrateRoot(document, <App assetMap={window.assetMap} />);
208208
```
209209
210-
Both client and server render `App` with the same `assetMap` prop, so there are no hydration errors.
210+
Hem client hem de server, `App`’i aynı `assetMap` prop’u ile render eder; böylece herhangi bir hydration hatası oluşmaz.
211211
212212
</DeepDive>
213213
214214
---
215215
216-
### Streaming more content as it loads {/*streaming-more-content-as-it-loads*/}
216+
### İçerik yüklendikçe stream etmek {/*streaming-more-content-as-it-loads*/}
217217
218-
Streaming allows the user to start seeing the content even before all the data has loaded on the server. For example, consider a profile page that shows a cover, a sidebar with friends and photos, and a list of posts:
218+
Streaming, kullanıcının tüm veri server’da yüklenmeden önce içeriği görmeye başlamasını sağlar. Örneğin, bir profil sayfasını düşünün; burada bir kapak fotoğrafı, arkadaşlar ve fotoğraflar ile dolu bir yan panel ve bir gönderi listesi gösterilmektedir:
219219
220220
```js
221221
function ProfilePage() {
@@ -232,7 +232,7 @@ function ProfilePage() {
232232
}
233233
```
234234
235-
Imagine that loading data for `<Posts />` takes some time. Ideally, you'd want to show the rest of the profile page content to the user without waiting for the posts. To do this, [wrap `Posts` in a `<Suspense>` boundary:](/reference/react/Suspense#displaying-a-fallback-while-content-is-loading)
235+
Diyelim ki `<Posts />` için veri yüklemesi biraz zaman alıyor. İdeal olarak, gönderileri beklemeden kullanıcıya profil sayfasının geri kalanını göstermek istersiniz. Bunu yapmak için, [Posts’i bir `<Suspense>` sınırına sarın:](/reference/react/Suspense#displaying-a-fallback-while-content-is-loading)
236236
237237
```js {9,11}
238238
function ProfilePage() {

0 commit comments

Comments
 (0)