Skip to content

Commit

Permalink
fix(example-nextjs): hydrate styles only once
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Jul 22, 2020
1 parent 1a88a7f commit 72d1c79
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/example-nextjs/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import * as React from "react";

import options from "../otion.config";

export default function MyApp({ Component, pageProps }: AppProps): JSX.Element {
if (typeof window !== "undefined") {
setup(options);
hydrate();
}
if (typeof window !== "undefined") {
setup(options);
hydrate();
}

export default function MyApp({ Component, pageProps }: AppProps): JSX.Element {
return <Component {...pageProps} />;
}

0 comments on commit 72d1c79

Please sign in to comment.