Toggle Hot Reloading

#1

When working with Snacks, is there any way to temporarily disable live-reloading, or to toggle it on/off?

#2

Not yet, but we know the live reloading is a bit aggressive, especially on larger projects. What are you working on?

#3

I can definitely see how live reloading would be aggressive for bigger projects as well.

In this case - which is perhaps not the use case Snack is designed for - just including API calls to external services results in the app hitting those endpoints numerous times in the span of seconds. So the ability to disable live reloading while at least getting those calls set up would be very helpful, and ease the strain on the external services (and my rate limits :slight_smile:). Or perhaps there is a convention around this issue that I’ve missed…

#4

For cases where you need to set a lot of things up, you may want to set those API calls up before you connect a device. You can also control this behavior more granularly if you work with exp or XDE to build your app.

#5

Great. I do think setting up the calls before connecting the device is a good strategy. I appreciate the advice :+1:

closed #6

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.