-
Notifications
You must be signed in to change notification settings - Fork 844
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
How to integrate fluro with fish-redux? #395
Comments
因为 PageRoutes 有visit api 所以似乎是足够灵活来处理类似的路由框架? |
看了几个例子,总觉得fluro的 路由定义 final Router router = new Router();和 fish-redux 中的final AbstractRoutes routes = PageRoutes 是冲突的,两者只能取其一。因为最后都到了 onGenerateRoute 中。请问大佬,这里何解?请不吝赐教,困扰我有些天了。 |
PageRoutes 并不是必须的,你可以选择 fluro 来和Page 直接对接。 |
Thanks。这个用法我也见过。 |
我并没有用过fluro,如果需要,可以提一个PR来改进下PageRoutes。 |
好的,研究一下fluro的代码先。 |
不要用fish redux的router,可直接用fluro。fluro创建handler的时候直接返回**Page就可以。 |
不可以,会报错**Page不是一个Widget |
你使用 page.buildPage(options); |
我想我会削弱fish-redux的路由的能力,将它退化为基础数据结构或api,方便于集成其他的路由框架。 也欢迎有同学能提供开源的fish_redux_fluro 类似的框架。 |
fluro基础上集成fish_redux,只需要在fluro的基础上route定义文件中将页面替换为page
fish_redux基础上集成fluro,则是
|
另外,提些建议:
|
非常好的建议,设计原则上是一个小的错误。非常欢迎PR,一起来完善。 |
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Is it possible to integrated fluro with fish-redux ?
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Fluro need to define a Router object as below
final router = new Router(); Routes.configureRoutes(router); Application.router = router;
In fish-redux ,we also needs to define an object PageRoutes
final AbstractRoutes routes = PageRoutes
How to integrate fluro with fish-redux ?
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: