Skip to content

Commit

Permalink
fix: example
Browse files Browse the repository at this point in the history
  • Loading branch information
TimMikeladze committed Sep 17, 2023
1 parent 7865d7e commit 87cc6d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const repos = useOctokit(
auth: session.data?.user?.accessToken,
},
{
refreshInterval: page === 1 ? 0 : 1000 * 5,
refreshInterval: page === 1 ? 5000 : 0,
}
);

Expand Down
4 changes: 2 additions & 2 deletions examples/nextjs/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -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();
Expand All @@ -28,7 +28,7 @@ export default function Example() {
auth: session.data?.user?.accessToken,
},
{
refreshInterval: page === 1 ? 0 : 1000 * 5,
refreshInterval: page === 1 ? 5000 : 0
}
);

Expand Down

0 comments on commit 87cc6d0

Please sign in to comment.