Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add hydrateRoot when react ssr enabled #387

Merged
merged 5 commits into from
May 20, 2024
Merged

fix: add hydrateRoot when react ssr enabled #387

merged 5 commits into from
May 20, 2024

Conversation

jrson83
Copy link
Contributor

@jrson83 jrson83 commented May 18, 2024

This PR adds missing hydrateRoot to client entry, when React SSR is enabled.

In addition it keeps createRoot for development.

EDIT: I couln't get a condition inside resource_path for $this->option('typescript') working to reduce the code duplication.

@taylorotwell taylorotwell merged commit d250dac into laravel:2.x May 20, 2024
16 checks passed
@jrson83 jrson83 deleted the fix/react-ssr branch May 20, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants