-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
base: main
Are you sure you want to change the base?
Add code recipes #86
Conversation
Changes Unknown when pulling 6f5d76e on frenzzy:recipes into ** on kriasoft:master**. |
how can I use "Controlling scroll behavior" that you mentioned above? |
import routes from './routes'; | ||
|
||
function render(location) { | ||
UniversalRouter.resolve(routes, location.pathname).then(route => { |
There was a problem hiding this comment.
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
dispatch
to return promise #23, redirect route? authorized routes #10 (done Add a recipe: redirects #131)