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

Function Wrapper

src/hooks/wrapper.tsx:9–26  ·  view source on GitHub ↗
({ children }: WrapperType)

Source from the content-addressed store, hash-verified

7};
8
9const Wrapper = ({ children }: WrapperType) => {
10 const testQueryClient = new QueryClient({
11 defaultOptions: {
12 queries: {
13 // gcTime (previously cacheTime in v4) controls how long unused/inactive queries
14 // remain in memory. Set to 0 in tests to prevent caching between test runs.
15 gcTime: 0,
16 staleTime: 0,
17 retry: false,
18 },
19 },
20 });
21 return (
22 <QueryClientProvider client={testQueryClient}>
23 <StacApiProvider apiUrl="https://fake-stac-api.net">{children}</StacApiProvider>
24 </QueryClientProvider>
25 );
26};
27export default Wrapper;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected