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

use react router version 4 final #277

Merged
merged 3 commits into from
Mar 22, 2017
Merged

use react router version 4 final #277

merged 3 commits into from
Mar 22, 2017

Conversation

zemirco
Copy link
Contributor

@zemirco zemirco commented Mar 21, 2017

No description provided.

</LocationBroadcast>
)
</MemoryRouter>
)
const node = wrapper.find('.BottomNavigation-content').at(0).node
node.scrollTop = 40
wrapper.find('.BottomNavigation-menu-item').at(0).simulate('click', {})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replacing the simulated click with:

wrapper.instance().history.push('/two')

seems to work

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is stupid and does not test what is intended to be....

@lipp
Copy link
Contributor

lipp commented Mar 21, 2017

fixed bottom navigation scroll top in branch (based on this branch):

https://github.com/HBM/md-components/tree/fix-bottomnavigation-scroll-top

merge/rebase/whatever into this PR? or do it separetly?

@lipp
Copy link
Contributor

lipp commented Mar 21, 2017

still seeing this on console

Warning: Hash history cannot PUSH the same path; a new entry will not be added to the history stack

@zemirco
Copy link
Contributor Author

zemirco commented Mar 22, 2017

yes, they are on it

remix-run/history#179

@zemirco
Copy link
Contributor Author

zemirco commented Mar 22, 2017

and

But you should only get this warning in development. If you generate your production build correctly (using NODE_ENV=production) you shouldn't see this warning in production.

remix-run/react-router#4467

@lipp lipp mentioned this pull request Mar 22, 2017
@Fa-So Fa-So merged commit cede060 into master Mar 22, 2017
@Fa-So Fa-So deleted the router4 branch March 22, 2017 10:15
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

Successfully merging this pull request may close these issues.

3 participants