vike-react 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,11 @@ export default {
|
|
2
2
|
component: LoadingComponent,
|
3
3
|
};
|
4
4
|
import React from 'react';
|
5
|
-
import
|
5
|
+
/* We can't import it here: https://github.com/vikejs/vike/issues/2460
|
6
|
+
* - We import it inside onRenderClient.js instead.
|
7
|
+
* - We'll be able to do it if Vite + Rolldown always transpiles the server-side.
|
8
|
+
import './Loading.css'
|
9
|
+
*/
|
6
10
|
function LoadingComponent() {
|
7
11
|
return (React.createElement("div", { style: {
|
8
12
|
width: '100%',
|
@@ -6,6 +6,7 @@ import { getPageElement } from './getPageElement.js';
|
|
6
6
|
import { callCumulativeHooks } from '../utils/callCumulativeHooks.js';
|
7
7
|
import { applyHeadSettings } from './applyHeadSettings.js';
|
8
8
|
import { resolveReactOptions } from './resolveReactOptions.js';
|
9
|
+
import './Loading.css'; // See comment inside Loading.tsx
|
9
10
|
let root;
|
10
11
|
const onRenderClient = async (pageContext) => {
|
11
12
|
pageContext._headAlreadySet = pageContext.isHydration;
|