6 |
7 | GitHub Trending Topics
8 |
9 |
10 | Discover which programming topics are trending on GitHub in real-time.
11 | Adjust the time interval and filters to see how trends evolve.
12 |
13 |
14 |
15 |
16 |
17 | );
18 | }
19 |
--------------------------------------------------------------------------------
/templates/github-dev-trends/app/providers.tsx:
--------------------------------------------------------------------------------
1 | "use client";
2 |
3 | import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
4 | import { ReactNode } from "react";
5 |
6 | const queryClient = new QueryClient({
7 | defaultOptions: {
8 | queries: {
9 | staleTime: 5 * 60 * 1000, // Consider data stale after 5 minutes
10 | refetchOnWindowFocus: false,
11 | },
12 | },
13 | });
14 |
15 | export function Providers({ children }: { children: ReactNode }) {
16 | return (
17 |