My snack doesn’t seem to update.
Example: github.com/expo/sqlite-example - Snack
When I change something in screens/HomeScreen.js my device does say “Updating” but it doesn’t show the changes.
Any clue?
My snack doesn’t seem to update.
Example: github.com/expo/sqlite-example - Snack
When I change something in screens/HomeScreen.js my device does say “Updating” but it doesn’t show the changes.
Any clue?
Hey @smitel,
There is an undefined
object error when I open that. Nonetheless, changing the background color resulted in a reload. Can you make sure the device is listed on the connected devices menu in the bottom right? Also, it’d be good to try testing with a new Snack to see if the same behavior occurs.
Cheers,
Adam
Fixed.
The problem isn’t that it doesn’t result in a reload. The problem is that the reload doesn’t show the changes. For instance when I change the title.
It is.
The problem does not appear with a new snack. I feel like it’s got something to do with the navigation preventing the change from ‘going through’, but I don’t understand RN/Expo/etc. enough yet.
I made a new snack: podcast-thingy-test-2 - Snack
Once I seperate my style into a seperate import, changes in it don’t update on my device until I kill the expo app and reload my snack. When I inline the stylesheet the changes do update on my device.
I’ve tried to simplify my problem as much as possible:
When I seperate the styles in the App.js, changes to styles.js do appear on the right: playful turkish delight - Snack
When I seperate the styles in a seperate component, changes to styles.js do not appear on the right: insane macaroni and cheese - Snack
The only difference between the two is putting the contents in a seperate component.
I test by changing the background color. It does show it’s updating on the right, but the changes do not take effect.
Does this make sense? Can you help me?
Thanks for the very detailed report @smitel. I relayed this internally and we’ll follow up when we know more.
Hi @smitel Thanks for the great report
Changes to any of the files in the project should now be reflected without needing a full reload
Thank you both for your quick reponse and kind words. I’ve checked and the problem is fixed in my examples.
To be clear, the problem was not with my code but somewhere in Expo?
Yes, a caching bug in the snack client app to be specific.
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.