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(react): wrap with React.lazy #716

Merged
merged 2 commits into from
Sep 29, 2023
Merged

fix(react): wrap with React.lazy #716

merged 2 commits into from
Sep 29, 2023

Conversation

AykutSarac
Copy link
Member

@AykutSarac AykutSarac commented Sep 28, 2023

This is a hotfix for recent generate react scripts change, adds back the forgotten React.lazy.
Before this change Baklava doesn't work with React 16.

@Enes5519
Copy link
Contributor

This worked in our project. Well done!

@AykutSarac AykutSarac merged commit 6319c79 into next Sep 29, 2023
5 of 7 checks passed
@AykutSarac AykutSarac deleted the fix/react-exports branch September 29, 2023 08:02
@github-actions
Copy link

🎉 This PR is included in version 2.3.0-beta.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

AykutSarac added a commit that referenced this pull request Sep 29, 2023
After looking into the discussion at
[#716](#716 (comment)),
I've noticed that we don't need to set the type manually as it's
inferred from **React.lazy**. This will give us accurate type of the
component and avoid mismatch.

Additionally it fixes appending `undefined` for JSDoc to the
`baklava-react.ts`.

Co-authored-by: Aykut Saraç <aykut.sarac@trendyol.com>
@AykutSarac AykutSarac mentioned this pull request Oct 12, 2023
@github-actions
Copy link

🎉 This PR is included in version 2.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants