Skip to content

Conversation

@mnowotnik
Copy link
Contributor

@mnowotnik mnowotnik commented Mar 25, 2022

Reason for changes

Changing a route on RepoTile tap is causing the following error:

Looking up a deactivated widget's ancestor is unsafe.

The exception is caused by an attempt to use already defunct context.
The context has been destroyed during the repo change a line before.
Effectively, the removed lines do not do anything since the entire
app is rebuilt using GitJournalChangeNotifier and doesn't change a route
by the navigator.

What changed?

Removed lines that caused errors and had no effect.

Testing and Review Notes

Change repository in the draw while in dev mode. Look at the console log.

Reason for changes

Changing a route on RepoTile tap is causing the following error:

> Looking up a deactivated widget's ancestor is unsafe.

The exception is caused by an attempt to use already defunct context.
The context has been destroyed during the repo change a line before.
Effectively, the removed do not do anything since the entire
app is rebuild using GitJournalChangeNotifier and doesn't change a route
by the navigator.

What changed?

Removed lines that caused errors and had no effect.
@mnowotnik mnowotnik force-pushed the bugfix/exc-when-changing-repo branch from 6324030 to f02c32a Compare March 25, 2022 16:18
@mnowotnik mnowotnik closed this Mar 25, 2022
@mnowotnik mnowotnik reopened this Mar 25, 2022
@vHanda
Copy link
Contributor

vHanda commented Mar 30, 2022

Sorry. I seem to have missed these.

If I don't respond in 24 hours, please feel free to ping me.

@mnowotnik
Copy link
Contributor Author

@vHanda pinging, please check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants