Add createScrollBehavior hook#86
Conversation
51a6efe to
c8a86ff
Compare
c8a86ff to
ba76309
Compare
ba76309 to
5cf4d36
Compare
|
Hello @taion Sorry, for the late answer, but I have not been available in the previous days. Regarding your solution, it does not allow a specific behavior configuration for a specific route. In spite of providing the For example, we use in the Can you provide the Thanks |
|
I'm not sure what you mean. Provide |
|
Your |
|
Ok, I will explain in a better way. The Therefore, the same logic should be available to the scrollBehavior. If it receives also the routerProps, in addition to the |
|
Should be available where in the scroll behavior? You can still pass in |
|
Yes, in the scroll behavior. In the |
|
You should be able to use something like a 3-tuple in the return value of |
|
That solution does not work when it is intended to use the saved It would be ok for scrolling to a specific position, but when the |
|
The saved target will include anything else you set, so you can just add extra data there. It has no fixed significance other than being the argument to |
|
For anyone else reading this later; although this was published as a patch release Added propType in this PR: To solve this in your project:
Although the release note says |
|
That component is not part of the public API and is not intended to be used directly. Why do you need to use it directly? |
|
Ah, apologies for that, it's indeed not part of the intended API, so no need for me to mention the breaking changes! The reason we are using that component, is because we can't use the |
|
Well, okay. Can you submit a PR to make that a default prop, then use |
Tests require taion/scroll-behavior#125 to pass.