mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
refactor(auth): cache user data [EE-4935] (#8380)
This commit is contained in:
parent
a748e15c16
commit
00bbf4ac63
8 changed files with 59 additions and 46 deletions
|
@ -14,13 +14,12 @@ export function withReactQuery<T>(
|
|||
function WrapperComponent(props: T) {
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
|
||||
<WrappedComponent {...props} />
|
||||
</QueryClientProvider>
|
||||
);
|
||||
}
|
||||
|
||||
WrapperComponent.displayName = displayName;
|
||||
WrapperComponent.displayName = `withReactQuery(${displayName})`;
|
||||
|
||||
return WrapperComponent;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue