mljar / mercury

Convert Jupyter Notebooks to Web Apps
https://RunMercury.com
GNU Affero General Public License v3.0
3.87k stars 243 forks source link

Disable page refresh on disconnect? #436

Open kapily opened 3 months ago

kapily commented 3 months ago

Is there an option to prevent page refresh on disconnect? Currently, mercury refreshes the page when it loses connection to the server.

For my use case, I want to persist whatever is on the page if the connection gets lost.

It would also be nice to not "gray-out" the screen.

Use case: a page takes a long time to render and there's no need to refresh it afterwards. The server is flaky and loses connection sometime and I don't want to lose the contents of the webpage when the connection the server is bad

kapily commented 3 months ago

I realized I actually filed a bug about this earlier: https://github.com/mljar/mercury/issues/365