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

exception when navigate to same page #65

Closed
davidchan666999 opened this issue Jul 24, 2020 · 2 comments
Closed

exception when navigate to same page #65

davidchan666999 opened this issue Jul 24, 2020 · 2 comments
Assignees

Comments

@davidchan666999
Copy link

Hello, thank you for the great work first. I am trying your boilerplate and so far so good.
But i got one problem, when i call Navigator to same page, MobXCaughtException came out "setState() or markNeedsBuild() called during build.".

I just add a IconButton in home page

        onPressed: () {
          Navigator.of(context).pushReplacementNamed(Routes.home);
        },
        icon: Icon(
          Icons.power_settings_new,
        ),
      ),

when i press it, exception occurred, how can i solve this problem, thanks.

@zubairehman
Copy link
Owner

@davidchan666999 Could you please explain a bit more on this and why do you want to navigate to the same page?

@zubairehman zubairehman self-assigned this Aug 14, 2020
@zubairehman
Copy link
Owner

Please feel free to open it again if you are still facing the issue. Thanks

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

No branches or pull requests

2 participants