[BUG] RichAttributionWidget
causes error due to un-mounted setState
call
#1538
Labels
bug
This issue reports broken functionality or another error
What is the bug?
If using
RichAttributionWidget
with the 'start open, auto close' feature, if the widget/screen containing the widget is unmounted, the RAW still attempts asetState
call, which results in an error.How can we reproduce it?
Use the demonstration code at https://docs.fleaflet.dev/#demonstration. Add another screen to the app, and navigate to this screen within 3 seconds of the map widget being loaded.
Do you have a potential solution?
Check that the
RichAttributionWidget
is still mounted before callingsetState
.Platforms
All
Severity
Erroneous: Prevents normal functioning and causes errors in the console
The text was updated successfully, but these errors were encountered: