私はreact-redux-routerを使用します。リダイレクトを試みます。しかし、私は今これを正しく行う方法はありません。私が知っている解決策は "@@ router/LOCATION_CHANGE"イベントをディスパッチすることだけですが、それは正しくないようです。リダイレクトを行うより良い方法はありますか?route reduxにリダイレクト
0
A
答えて
1
経路を訪れたときのリダイレクトは、リダイレクトコンポーネントで行うことができます。 https://github.com/reactjs/react-router/blob/master/docs/API.md#redirectを確認してください。反応 - ルータ - Reduxのからアプリ自体にリダイレクトするために
、(プッシュを確認してください)(あなたはこのライブラリを使用しているように見える):https://github.com/reactjs/react-router-redux#pushlocation-replacelocation-gonumber-goback-goforward
+0
ありがとうございます! –
関連する問題
- 1. Amazon Route 53セットアップと301リダイレクト設定
- 2. リアクタ - ルータ - Reduxとリアクトブートストラップ
- 3. Codeigniter $ route
- 4. mvc 4 begin begin from route name
- 5. Dynamic Mvc route
- 6. Codeigniter Route Issues
- 7. Zend PaginatorとRoute
- 8. AWS Route 53 CNAME
- 9. Rails optional /:locale route
- 10. parse express app.js route
- 11. Zend Routeキャッチオール
- 12. Rails 3 route problem
- 13. HerokuとRoute 53
- 14. Rails missing route
- 15. OpenRasta Route Constraints
- 16. Kohana 3.2 Route :: get
- 17. Reduxジェネリックレデューサー
- 18. wp7のGoogle route api
- 19. ReduxとRedux Routerによるユーザ認証の処理
- 20. Web API get route values
- 21. どのようにReduxの
- 22. Reduxのは - ホットリロード
- 23. Redux Keep Session
- 24. Reduxのスプレッドプロパティ
- 25. Apache rewrite rules redux
- 26. React + Redux connect(mapStateToProps)
- 27. Reduxフォーム変数
- 28. Amazon Route 53とは何ですか?
- 29. 低優先度Express.js app.get( '/ route');
- 30. camel http4 route in threadout timeout
'routerMiddleware'と使用を適用します:' store.dispatch(プッシュ( '/ foo')) '。 Via https://github.com/reactjs/react-router-redux#what-if-i-want-to-issue-navigation-events-via-redux-actions – lux