MCPcopy Create free account
hub / github.com/developmentseed/stac-react / App

Function App

example/src/App.jsx:24–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22});
23
24function App() {
25 const apiUrl = process.env.REACT_APP_STAC_API;
26 const isDevelopment = process.env.NODE_ENV === 'development';
27
28 // Debug: Verify QueryClient configuration
29 if (isDevelopment && typeof window !== 'undefined') {
30 // eslint-disable-next-line no-console
31 console.log('[App] QueryClient defaults:', queryClient.getDefaultOptions());
32 }
33
34 return (
35 <QueryClientProvider client={queryClient}>
36 <StacApiProvider apiUrl={apiUrl} enableDevTools={isDevelopment} queryClient={queryClient}>
37 <div className="App grid grid-rows-[min-content_1fr]">
38 <Header />
39 <main className="flex items-stretch">
40 <Main />
41 </main>
42 </div>
43 </StacApiProvider>
44 </QueryClientProvider>
45 );
46}
47
48export default App;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected