next-restore-scroll-position
Advanced tools
Comparing version
{ | ||
"name": "next-restore-scroll-position", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Restores scroll position when navigating back and forth in NextJS", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
@@ -18,2 +18,4 @@ # Restore scroll position in NextJS | ||
```js | ||
import { useScrollRestoration } from 'next-restore-scroll-position'; | ||
function App() { // This needs to be NextJS App Component | ||
@@ -28,2 +30,4 @@ const router = useRouter(); | ||
```js | ||
import { useScrollRestoration } from 'next-restore-scroll-position'; | ||
function App() { // This needs to be NextJS App Component | ||
@@ -30,0 +34,0 @@ const router = useRouter(); |
12711
1.11%41
10.81%