mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
365 B
TypeScript
16 lines
365 B
TypeScript
import React from 'react';
|
|
import { QueryClientProvider } from 'react-query';
|
|
import { queryClient } from './';
|
|
|
|
/**
|
|
* 缓存上下文
|
|
*/
|
|
export const CacheProvider: React.FC = React.memo((props) => {
|
|
return (
|
|
<QueryClientProvider client={queryClient}>
|
|
{props.children}
|
|
</QueryClientProvider>
|
|
);
|
|
});
|
|
CacheProvider.displayName = 'CacheProvider';
|