Say you've been editing a shared, important query in the Query Library and you click the blue New button to start a small test query. In this case, Retool should warn the user, as changes will not be saved to the original query.
A popup is currently shown when navigating away from the current query to another, existing query: You have unsaved changes - are you sure you want to leave?
(Cancel, OK)
However, when creating a new query while editing an existing query, no such popup is shown.
This leaves potentially hours of work erased. Note: the query history does not show any changes.