Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Nov 28, 2022
1 parent 9fb6233 commit 7ba1242
Showing 1 changed file with 6 additions and 3 deletions.
@@ -1,8 +1,11 @@
import dynamic from 'next/dynamic'

const BrowserLoaded = dynamic(async () => () => <div>Browser hydrated</div>, {
ssr: false,
})
const BrowserLoaded = dynamic(
async () => ({ default: () => <div>Browser hydrated</div> }),
{
ssr: false,
}
)

export default () => (
<div>
Expand Down

0 comments on commit 7ba1242

Please sign in to comment.