Closed redDwarf03 closed 1 year ago
And when we create an account and go just after to NFT page, an error occurs
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: This widget has been unmounted, so the State no longer has a context (and should be considered defunct).
Consider canceling any active work during "dispose" or using the "mounted" getter to determine if the State is still active.
#0 State.context.<anonymous closure>
package:flutter/…/widgets/framework.dart:935
#1 State.context
package:flutter/…/widgets/framework.dart:941
#2 _AddAccountConfirmState._showSendSucceed
package:aewallet/…/components/add_account_confirm_sheet.dart:114
<asynchronous suspension>
#3 _AddAccountConfirmState._registerBus.<anonymous closure>
package:aewallet/…/components/add_account_confirm_sheet.dart:73
<asynchronous suspension>
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: This widget has been unmounted, so the State no longer has a context (and should be considered defunct).
Consider canceling any active work during "dispose" or using the "mounted" getter to determine if the State is still active.
#0 State.context.<anonymous closure>
package:flutter/…/widgets/framework.dart:935
#1 State.context
package:flutter/…/widgets/framework.dart:941
#2 _AddAccountConfirmState._showSendSucceed
package:aewallet/…/components/add_account_confirm_sheet.dart:114
<asynchronous suspension>
#3 _AddAccountConfirmState._registerBus.<anonymous closure>
package:aewallet/…/components/add_account_confirm_sheet.dart:73
<asynchronous suspension>
This bug could have been caused by misused ref.watch
.
So I fixed those in https://github.com/archethic-foundation/archethic-wallet/pull/650
The problem still remains. It strongly seems related to https://github.com/rrousselGit/riverpod/issues/2041.
issue fixed in 3.1.0
Describe the problem you discovered
When we refresh account list and while the loading we go to NFT list, an error occurs after the loading of NFT
Describe the solution you'd like
No response