Page refreshes immediate on error/exception

When dash runs into an error, the page immediately refreshes before I can see the dash error box and debug it. All I get is the snippet below from the dev tools console which is often truncated and provides limited information.

I haven’t been able to create an MVC example of this unfortunately, so was hoping someone knew what caused this.

'<!doctype html>\n<html lang=en>\n <head>\n <title…d value (type=type_error.none.not_allowed)\n\n\n-->\n'}