SSR Flashcards

Server Side Rendering

1
Q

Do Cliente Components run on the server during SSR?

A

Yes, Client Component renders on client and server, while Server Component just renders on server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Is Window Object available on Server Side?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the “golden rule” of hydration and SSR?

A

The very first render should produce the exact same markup on the server that it does on the client

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Two common footguns with SSR?

A

1, Trying to access “browser stuff” on the server
2, Hydration mismatches

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the “two-pass” strategy

A

First, we print the generic parts.
Second, when we have the specific information for each part, we do a second pass and fill those details

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

SSR Flavor - “On-demand SSR”

A

The HTML is generated per-request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SSR Flavor - “Static Site Generation”

A

The HMTL is generated for every route when the app is built

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

SSR Flavor - “Incremental Static Regeneration”

A

Each route is rendered on-demand for the first request, but the HTML is saved for future requests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What type of rendering strategy is used by Next.js in development mode?

A

dynamic on-demand SSR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What type of rendering strategy is used by Next.js in production?

A

Next.js will try ti pick the optimal strategy on a route-by-route basis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Server can stream the response?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

are allowed Server Components to be asynchronous?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly