From 87cc6d0d4245305be755e23018587aa2b6c32e42 Mon Sep 17 00:00:00 2001 From: TimMikeladze Date: Sat, 16 Sep 2023 19:29:03 -0700 Subject: [PATCH] fix: example --- README.md | 2 +- examples/nextjs/src/app/page.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3ece2f6..534f985 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ const repos = useOctokit( auth: session.data?.user?.accessToken, }, { - refreshInterval: page === 1 ? 0 : 1000 * 5, + refreshInterval: page === 1 ? 5000 : 0, } ); diff --git a/examples/nextjs/src/app/page.tsx b/examples/nextjs/src/app/page.tsx index 8214f8d..baecd82 100644 --- a/examples/nextjs/src/app/page.tsx +++ b/examples/nextjs/src/app/page.tsx @@ -1,11 +1,11 @@ 'use client'; -import styles from './page.module.css'; import { signIn, signOut, useSession } from 'next-auth/react'; import Image from 'next/image'; import Link from 'next/link'; import { useState } from 'react'; import { useOctokit } from 'use-octokit'; +import styles from './page.module.css'; export default function Example() { const session = useSession(); @@ -28,7 +28,7 @@ export default function Example() { auth: session.data?.user?.accessToken, }, { - refreshInterval: page === 1 ? 0 : 1000 * 5, + refreshInterval: page === 1 ? 5000 : 0 } );