Skip to content

Commit

Permalink
Fix /dynamic in test/.stats-app (#65543)
Browse files Browse the repository at this point in the history
Noticed while doing some testing that this route was broken in this
application. We use some parts of this app to generate statistics - I'm
planning to use more of the routes for benchmarking so I wanted to
ensure it was working.

Closes NEXT-3371
  • Loading branch information
Ethan-Arrowood authored May 9, 2024
1 parent 718d94a commit bd110c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/.stats-app/pages/dynamic.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import dynamic from 'next/dynamic'

const DynamicHello = dynamic(() => import('../components/hello'))
const DynamicHello = dynamic(() =>
import('../components/hello').then((mod) => mod.Hello)
)

const Page = () => (
<>
Expand Down

0 comments on commit bd110c6

Please sign in to comment.