feat: prepare supporter self-hosting
This commit is contained in:
@@ -12,21 +12,12 @@ import { ThemeProvider } from './theme-provider';
|
||||
export function Providers({ children }: { children: React.ReactNode }) {
|
||||
const storeRef = useRef<AppStore>(undefined);
|
||||
if (!storeRef.current) {
|
||||
// Create the store instance the first time this renders
|
||||
storeRef.current = makeStore();
|
||||
}
|
||||
|
||||
return (
|
||||
<NuqsAdapter>
|
||||
<ThemeProvider>
|
||||
{/* {import.meta.env.VITE_OP_CLIENT_ID && (
|
||||
<OpenPanelComponent
|
||||
clientId={import.meta.env.VITE_OP_CLIENT_ID}
|
||||
trackScreenViews
|
||||
trackOutgoingLinks
|
||||
trackAttributes
|
||||
/>
|
||||
)} */}
|
||||
<ReduxProvider store={storeRef.current}>
|
||||
<TooltipProvider delayDuration={200}>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user