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

Downloader breaking every other time you reload in debugger #4

Open
sjchristi opened this issue Mar 4, 2024 · 3 comments
Open

Downloader breaking every other time you reload in debugger #4

sjchristi opened this issue Mar 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@sjchristi
Copy link

I'm running on ios simulator, and I noticed that every other time the app is reloaded, the downloader stops working.

It looks like this is being caused because there are two instances of the downloader allocated at once, and one of the instances which receives all the messages has an invalid bridge so none of the events are forwarded on to javascript.

I'm not sure why this is the case; it seems that when the app is reloaded, it only deallocates the instances of the module every other time. Not sure if this is a lower level react native bug or something else.

Thought I'd raise this here in case anyone else is wondering why it seems to be breaking sometimes when developing.

@kesha-antonov
Copy link
Owner

Hi
Did you try on real device?

@sjchristi
Copy link
Author

on a full release bulid i haven't noticed htis happening on device, but i have seen it on device with a debug build where you can reload your app dynamically from react native.

@kesha-antonov
Copy link
Owner

Yes, I noticed this problem also, maybe it's related to Fast Refresh
I will look into it

@kesha-antonov kesha-antonov added the bug Something isn't working label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants