Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/exc when changing repo #621

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

None yet

2 participants