Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Dash app Updates 2 - 3 times when its first loads

import dash
import dash_html_components as html
import inspect

app = dash.Dash()

def serve_layout():
    print('Callinggg layout')
    return html.Div('hellof world')

app.layout = serve_layout

if __name__ == '__main__':

Any idea how to fix this?
it’s a simple app so its not a problem here but I have another app that creates 3 times the amount of elements needed because of this problem so I need to find a solution

When you run in debug mode, the code runs twice. Try setting the debug flag to False.

i am debugging so i need it on.