In some cases, messages.removeAll()
won't clear all shown messages.
#110
Labels
question
Further information is requested
In my app, I use
messages
to show compilation error. The code parser would throw an Error containing a list of Error instances, each of those contains information necessary to add error messages to theCodeEditor
.When there's an error thrown,
messages.insert
is used to add all error messages to themessages: Set<TextLocated<Message>>
state variable to show the error at the corresponding place on the editor view.However, sometimes,
messages.removeAll()
couldn't remove all error shown, even when themessages
set is already empty, some previously shown messages would stay.I couldn't reproduce this in the demo app, I will try to make it happen and update this issue accordingly.
Related: iXORTech/Typstify#5
The text was updated successfully, but these errors were encountered: