Checking if the property is None
should work for all properties (unless you’ve initialized them to something different). You can also prevent updates by raising dash.exceptions.PreventUpdate()
.
So, your code would be like:
if value is None:
raise dash.exceptions.PreventUpdate()