You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
I've also tried something like this, which would give me the following warning in the console:
react-locomotive-scroll: the context is missing. You may be using the hook without registering LocomotiveScrollProvider, or you may be using the hook in a component which is not wrapped by LocomotiveScrollProvider.
Note that the component this is in is a page that is wrapped by _app.js, where my is held.
I know for a fact that it is wrapped by <LocomotiveScrollProvider> because the page has smooth scrolling enabled and follows the general layout properties of my layout.js.
I'm really at a loss here. Is there no way to scroll to a Ref or ID with this package..?
Hello 👋
I'm trying to create a button which, when clicked, will scroll the page down to a given Ref/ID/etc.
I'm struggling to figure out how to implement this from the docs.
What I have currently is roughly the following:
I've also initialized
<LocomotiveScrollProvider>
within my_app.js
which wraps my entire app.What am I doing wrong here?
I keep getting the following error:
Unhandled Runtime Error: TypeError: scroll.scrollTo is not a function
The text was updated successfully, but these errors were encountered: