Skip to content

Commit

Permalink
test forcing a page to client render with useRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Mar 28, 2024
1 parent 37aab13 commit 9bbd0db
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ import styled from 'styled-components';
import getConfig from 'next/config';
import Head from 'next/head';
import Error from 'next/error';
import { useRouter } from 'next/router';

import useTimesSquarePage from '../../hooks/useTimesSquarePage';
import TimesSquareParameters from '../TimesSquareParameters';
import TimesSquareUrlParametersContext from '../TimesSquareUrlParametersProvider';

export default function TimesSquareGitHubPagePanel({}) {
const { publicRuntimeConfig } = getConfig();
router = useRouter();
const { tsPageUrl } = React.useContext(TimesSquareUrlParametersContext);
const pageData = useTimesSquarePage(tsPageUrl);

Expand Down

0 comments on commit 9bbd0db

Please sign in to comment.