better structure
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import '@lume/renderer/index.css';
|
||||
import { Shell } from '@lume/renderer/shell';
|
||||
import { PageContextClient } from '@lume/renderer/types';
|
||||
|
||||
import { StrictMode } from 'react';
|
||||
import { Root, createRoot, hydrateRoot } from 'react-dom/client';
|
||||
import 'vidstack/styles/defaults.css';
|
||||
|
||||
import './index.css';
|
||||
import { Shell } from './shell';
|
||||
import { PageContextClient } from './types';
|
||||
|
||||
export const clientRouting = true;
|
||||
export const hydrationCanBeAborted = true;
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Shell } from '@lume/renderer/shell';
|
||||
import { PageContextServer } from '@lume/renderer/types';
|
||||
|
||||
import { StrictMode } from 'react';
|
||||
import ReactDOMServer from 'react-dom/server';
|
||||
import { dangerouslySkipEscape, escapeInject } from 'vite-plugin-ssr/server';
|
||||
|
||||
import { Shell } from './shell';
|
||||
import { PageContextServer } from './types';
|
||||
|
||||
export const passToClient = ['pageProps'];
|
||||
|
||||
export function render(pageContext: PageContextServer) {
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import { PageContext } from '@lume/renderer/types';
|
||||
import { RelayProvider } from '@lume/shared/relayProvider';
|
||||
import { PageContextProvider } from '@lume/utils/hooks/usePageContext';
|
||||
import { RelayProvider } from '@shared/relayProvider';
|
||||
|
||||
import { PageContextProvider } from '@utils/hooks/usePageContext';
|
||||
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||
|
||||
import { LayoutDefault } from './layoutDefault';
|
||||
import { PageContext } from './types';
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user