Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
b7d49e0e
Unverified
Commit
b7d49e0e
authored
Jun 23, 2023
by
Tyler Lutz
Committed by
GitHub
Jun 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in 01-typescript.mdx (#51669)
Change 'Previous' to 'Previously'
parent
5f3d7c43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
01-typescript.mdx
...uilding-your-application/06-configuring/01-typescript.mdx
+1
-1
No files found.
docs/02-app/01-building-your-application/06-configuring/01-typescript.mdx
View file @
b7d49e0e
...
...
@@ -136,7 +136,7 @@ function Card<T extends string>({ href }: { href: Route<T> | URL })
Next
.
js
13
has
**
enhanced
type
safety
**.
This
includes
:
1.
**
No
serialization
of
data
between
fetching
function
and
page
**:
You
can
`fetch`
directly
in
components
,
layouts
,
and
pages
on
the
server
.
This
data
_does
not_
need
to
be
serialized
(
converted
to
a
string
)
to
be
passed
to
the
client
side
for
consumption
in
React
.
Instead
,
since
`app`
uses
Server
Components
by
default
,
we
can
use
values
like
`Date`
,
`Map`
,
`Set`
,
and
more
without
any
extra
steps
.
Previously
,
you
needed
to
manually
type
the
boundary
between
server
and
client
with
Next
.
js
-
specific
types
.
2.
**
Streamlined
data
flow
between
components
**:
With
the
removal
of
`_app`
in
favor
of
root
layouts
,
it
is
now
easier
to
visualize
the
data
flow
between
components
and
pages
.
Previous
,
data
flowing
between
individual
`pages`
and
`_app`
were
difficult
to
type
and
could
introduce
confusing
bugs
.
With
[
colocated
data
fetching
](
/
docs
/
app
/
building
-
your
-
application
/
data
-
fetching
/
fetching
)
in
Next
.
js
13
,
this
is
no
longer
an
issue
.
2.
**
Streamlined
data
flow
between
components
**:
With
the
removal
of
`_app`
in
favor
of
root
layouts
,
it
is
now
easier
to
visualize
the
data
flow
between
components
and
pages
.
Previous
ly
,
data
flowing
between
individual
`pages`
and
`_app`
were
difficult
to
type
and
could
introduce
confusing
bugs
.
With
[
colocated
data
fetching
](
/
docs
/
app
/
building
-
your
-
application
/
data
-
fetching
/
fetching
)
in
Next
.
js
13
,
this
is
no
longer
an
issue
.
[
Data
Fetching
in
Next
.
js
](
/
docs
/
app
/
building
-
your
-
application
/
data
-
fetching
/
fetching
)
now
provides
as
close
to
end
-
to
-
end
type
safety
as
possible
without
being
prescriptive
about
your
database
or
content
provider
selection
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment