Skip to content

Commit fc9eab5

Browse files
authored
Update app.tsx
1 parent 98f57a6 commit fc9eab5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

resources/js/app.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ createInertiaApp({
1111
title: (title) => `${title} - ${appName}`,
1212
resolve: (name) => resolvePageComponent(`./pages/${name}.tsx`, import.meta.glob('./pages/**/*.tsx')),
1313
setup({ el, App, props }) {
14-
const shouldHydrate = el.hasChildNodes();
15-
16-
if (shouldHydrate) {
14+
if (el.hasChildNodes()) {
1715
hydrateRoot(el, <App {...props} />);
1816
} else {
1917
createRoot(el).render(<App {...props} />);

0 commit comments

Comments
 (0)