7/6/2023 0 Comments React router dom hashhistoryWhen triggered by the Route doesn't change, only the URL does.ĭispatching redux actions or calling push on the history itself have the same behavior as only Link works. Trigger ('/links/add') and the Layout will display the new URL but the page doesn't update (it's still LinksPage instead of AddLinkPage) Expected Behavior Had no luck with the regular history.Ĭlick on the Link and the Layout will display the new URL and the correct page. LinksPage has both a Add new and ('/links/add') Steps to reproduce Import from "react-router-redux" import createHistory from 'history/createHashHistory' const history = createHistory ( ) render (, document.
0 Comments
Leave a Reply. |