-
-
Notifications
You must be signed in to change notification settings - Fork 107
Add code recipes #86
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
base: main
Are you sure you want to change the base?
Add code recipes #86
Conversation
22e4f51 to
6f5d76e
Compare
|
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #86 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 3
Lines 229 233 +4
Branches 66 73 +7
=========================================
+ Hits 229 233 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dispatchto return promise #23, redirect route? authorized routes #10 (done Add a recipe: redirects #131)