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.
14 lines
351 B
TypeScript
14 lines
351 B
TypeScript
import React from 'react';
|
|
import { QueryClient, QueryClientProvider } from 'react-query';
|
|
|
|
const queryClient = new QueryClient();
|
|
|
|
export const PawProvider: React.FC = React.memo((props) => {
|
|
return (
|
|
<QueryClientProvider client={queryClient}>
|
|
{props.children}
|
|
</QueryClientProvider>
|
|
);
|
|
});
|
|
PawProvider.displayName = 'PawProvider';
|