Looking up a deactivated widget's ancestor is unsafe

2,313 views
Skip to first unread message

VijayaRagavan A

unread,
Jul 26, 2018, 9:11:09 AM7/26/18
to Flutter Dev
How to handle deactivated widgets using their context in async functions?
How to get ancestor of deactivated widgets using the context?

Ian Hickson

unread,
Jul 26, 2018, 10:05:13 AM7/26/18
to VijayaRagavan A, Flutter Dev
Check "mounted", if it's false, stop.

On Thu, Jul 26, 2018, 06:11 VijayaRagavan A <vijayara...@gmail.com> wrote:
How to handle deactivated widgets using their context in async functions?
How to get ancestor of deactivated widgets using the context?

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

--
Ian Hickson

😸
Reply all
Reply to author
Forward
0 new messages