varabyte / kobweb

A modern framework for full stack web apps in Kotlin, built upon Compose HTML
https://kobweb.varabyte.com
Apache License 2.0
1.41k stars 64 forks source link

Loader spinner should better handle when the user quits the server #59

Open bitspittle opened 2 years ago

bitspittle commented 2 years ago
  1. kobweb run
  2. change some code
  3. while "building..." spinner is up, press Q

Expected: Page indicates that the web server is down Actual: Spinner keeps going forever

bitspittle commented 2 years ago

This might have been exacerbated by an internal compiler error with compose, which apparently caused Gradle's -t option to stop working, so when I pressed "Q" to exit the server, everything was already busted. This may be a rare thing for users to run into themselves, so it may not be an urgent issue.

bitspittle commented 2 years ago

Maybe the easier bug here is that if the client sees that the server is down (at least in dev mode), it should kill the current page and render something like "The server cannot be reached"