Remove App Refresh, but leave it enabled
I want my data to periodically refresh in the background, but don't display the distracting UI element that shows that the app refresh is in-progress. Of course, I could use the "Hide Bar" option, but then I can't set my app to auto-refresh on an interval. How can I maintain the refresh interval, while hiding the bar?
18 Replies
right now you cannot
You cant use a frontend script with setInterval and reCompute?
Have not tried but though that should be possible 🙂 Challenging the master here.., so I'm prop. wrong.
Great idea
@sindresvendby I tried this, but didn't work
It prints out the message on line 1, but
setInterval()
doesn't seem to be available.setInterval should be available but you're using it a bit wrong
and yes I didn't think of that @sindresvendby
However, I don't recommend doing this
like really not
because you will never destroy the internval so it will run forever
Oh I'm not passing in a callback .... duh
yes
I can track the ID of the refresh interval and delete it, if a new one is created
you do you i'm just warning
but just to be clear
when i say forever, I mean even if you exit the app
Oh .... that's not good
you can do things around it like checking that some objects are still available in the internval
What's so bad about the bar ?
you can style it in css to make it more discrete
I just don't like seeing the activity indicator. It feels less seamless from a UX perspective.
we can probably add an option to set a default refresh time
@sindresvendby this works ... of course, without considering that clicking the button multiple times will register a bunch of timers ....
Single button to enable / disable auto-refresh 🙂 🚀