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(core): initializeApp default app not resolved #255

Merged
merged 1 commit into from
May 2, 2024

Conversation

jnorkus
Copy link
Contributor

@jnorkus jnorkus commented Apr 26, 2024

When hot reloading using HMR, the default app is already set and is not resolved correctly.

Copy link

cla-bot bot commented Apr 26, 2024

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign the CLA at https://www.nativescript.org/cla.
CLA has not been signed by users: @jnorkus.
After signing the CLA, you can ask me to recheck this PR by posting @cla-bot check as a comment to the PR.

@jnorkus
Copy link
Contributor Author

jnorkus commented Apr 26, 2024

@cla-bot check

@cla-bot cla-bot bot added the cla: yes label Apr 26, 2024
Copy link

cla-bot bot commented Apr 26, 2024

The cla-bot has been summoned, and re-checked this pull request!

@vallemar
Copy link
Contributor

@jnorkus very nice, I think I struggled with this a long time ago. I simply stored the application in a global variable and if it was not null I skipped the initialization step, but this is much better and solves the problem!

@NathanWalker NathanWalker merged commit 486294b into NativeScript:main May 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants