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

Add code recipes #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add code recipes #86

wants to merge 1 commit into from

Conversation

frenzzy
Copy link
Member

@frenzzy frenzzy commented Mar 26, 2017

@coveralls
Copy link

coveralls commented Apr 21, 2017

Coverage Status

Changes Unknown when pulling 6f5d76e on frenzzy:recipes into ** on kriasoft:master**.

@mksarge mksarge mentioned this pull request Jun 6, 2017
@ImanMh
Copy link

ImanMh commented Aug 16, 2017

how can I use "Controlling scroll behavior" that you mentioned above?
My problem is that I want to change browser location path without refreshing (changing the scroll position) but I don't know if its possible.
(I have a list that I has a sidebar for filtering the list.)

import routes from './routes';

function render(location) {
UniversalRouter.resolve(routes, location.pathname).then(route => {
Copy link

Choose a reason for hiding this comment

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

Do we have this api for now ?
I like this design, for now resolve is an prototype method of class UniversalRouter, and we need to call new UniversalRouter to use resolve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment