New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ridi/react-router-restore-scroll

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ridi/react-router-restore-scroll - npm Package Compare versions

Comparing version

to
0.0.4

2

package.json
{
"name": "@ridi/react-router-restore-scroll",
"version": "0.0.3",
"version": "0.0.4",
"description": "Scroll position restoration for React Router",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -68,3 +68,3 @@ # Restore Scroll

...
"@ridireact-router-restore-scroll": "^0.0.3",
"@ridi/react-router-restore-scroll": "^0.0.3",
...

@@ -94,3 +94,3 @@ ```

useRouterRestoreScroll
} from 'react-router-restore-scroll'
} from '@ridi/react-router-restore-scroll'

@@ -126,3 +126,3 @@ // first enhance a history

```js
import { RestoreScroll } from 'react-router-restore-scroll'
import { RestoreScroll } from '@ridi/react-router-restore-scroll'

@@ -148,3 +148,3 @@ // then in a component's render method, wrap your scrollable element

import createBrowserHistory from 'history/lib/createBrowserHistory'
import useHistoryRestoreScroll from 'react-router-restore-scroll/lib/useHistoryRestoreScroll'
import useHistoryRestoreScroll from '@ridi/react-router-restore-scroll/lib/useHistoryRestoreScroll'

@@ -151,0 +151,0 @@ const history = useHistoryRestoreScroll(createBrowserHistory)()