Skip to content

Commit

Permalink
fixes refresh issue with nodelist
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreeman451 committed Feb 27, 2025
1 parent bd7e398 commit 7aed731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serviceradar-next/src/app/nodes/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import { Suspense } from 'react';
import NodeList from '../../components/NodeList';

export const revalidate = 30; // Increase revalidation time from 10 to 30 seconds

// Async function to fetch data on the server with API key authentication
async function fetchNodes() {
try {
Expand Down Expand Up @@ -37,6 +35,8 @@ async function fetchNodes() {
export default async function NodesPage() {
const initialNodes = await fetchNodes();

console.log("NodesPage rendered with initialNodes length:", initialNodes.length);

return (
<div>
<Suspense fallback={<div className="flex justify-center items-center h-64">
Expand Down

0 comments on commit 7aed731

Please sign in to comment.