onGenerateRoute called multiple times

前提是你 提交于 2020-02-05 05:11:46

问题


In my main method I have

onGenerateRoute: (route) {
        print(route);
        return Router.generateRoute(route);
      }

If I enter URL with https://myurl.com/#/foo/bar I can see printing is called multiple times.

/
/foo
/foo/bar

I have an issue because I want to enter bar path, but it gets entered foo instead.

Any ideas how should I proceed?

来源:https://stackoverflow.com/questions/57911043/ongenerateroute-called-multiple-times

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!