Skip to content

Commit 32272eb

Browse files
committed
docs: Add comment to clarify inner component pattern
1 parent 9cb92fa commit 32272eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/context/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ type StacApiProviderType = {
1313
enableDevTools?: boolean;
1414
};
1515

16+
/**
17+
* Inner component that must render inside QueryClientProvider.
18+
* Separated because useStacApi() calls useQuery from TanStack Query,
19+
* which requires QueryClient context to be available.
20+
*/
1621
function StacApiProviderInner({
1722
children,
1823
apiUrl,

0 commit comments

Comments
 (0)