I have an add-on that shows an error message using showWarning
inside a callback registered with the field_filter
hook. I found out that this sometimes causes Anki to enter an infinite loop where dismissing the error dialog will make Anki reevaluate custom filters again (caused by a refresh_if_needed call) and will eventually result in the same error dialog being shown.
Should this be documented (maybe in genhooks.py)?