We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98f57a6 commit fc9eab5Copy full SHA for fc9eab5
resources/js/app.tsx
@@ -11,9 +11,7 @@ createInertiaApp({
11
title: (title) => `${title} - ${appName}`,
12
resolve: (name) => resolvePageComponent(`./pages/${name}.tsx`, import.meta.glob('./pages/**/*.tsx')),
13
setup({ el, App, props }) {
14
- const shouldHydrate = el.hasChildNodes();
15
-
16
- if (shouldHydrate) {
+ if (el.hasChildNodes()) {
17
hydrateRoot(el, <App {...props} />);
18
} else {
19
createRoot(el).render(<App {...props} />);
0 commit comments