-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Hot reload not working for library components in expo project #30600
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
Comments
I have managed to found what was missing. It was indeed some configuration in the
If I am not mistaking, this is something missing from the documentation 'https://nx.dev/nx-api/expo#nxexpo' |
@petros-zavrakas This works like a charm. It doesn't make sense that this isn't documented, as it's a fundamental step for working properly. I understand that the other solution would be to run the command watch-deps on my app, but this command doesn't work for me. In NX Console, I run the command
|
same issue |
Current Behavior
Hello everyone, i have set up a very basic Expo NX monorepo following the documentation https://nx.dev/nx-api/expo#nxexpo where I have generated a library and a component inside the library.
When I am running the app, everything seems to work as expected, except hot reload when I am updating the component inside the library.
When I am applying changes in the application components, like in
apps/my-app/src/app/App.ts
component, hot reload is working as expected.Expected Behavior
The expected behaviour is that the hot reload is working when I am applying some changes/updates in the components inside libraries
/libs
as it does when I am applying changes/updates inside the/apps
.GitHub Repo
https://github.com/petros-zavrakas/nx-expo
Steps to Reproduce
yarn
in the root foldernx start default-tenant
apps/default-tenant/src/app/App.ts
you will see that the application and the emulator will reload and change it will apply (hot reload is working)libs/casb-shared/src/lib/navigation/Navigation.tsx
you will see the application in the emulator is not updating (hot reload is not working)Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: