alan-sdk-reactnative
alan-sdk-reactnative copied to clipboard
Issue with hot reload in react native
Problem, when developing, the Alan button will cause a problem with the hot reload of react native. Steps to reproduce the problem:
- Create a new react native project
- Implement the most basic Alan integration: https://alan.app/docs/client-api/cross-platform/react-native/
- Run the project on the localhost
- Open the app and wait for Alan to finish loading without any other actions
- Change something in your code (such as adding a line of text) to trigger a hot reload
- You will find that the "refreshing..." prompt will pop up twice in a row, and then the app will get stuck