UNPKG

@resourge/react-fetch

Version:

[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

18 lines (15 loc) 639 B
/** * react-fetch v1.41.3 * * Copyright (c) resourge. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ import { useBaseScrollRestoration } from '../useBaseScrollRestoration'; const visitedUrl = new Map(); const useScrollRestoration = (action, scrollRestorationId = (_window => (_window = window) == null || (_window = _window.location) == null ? void 0 : _window.pathname)()) => useBaseScrollRestoration(visitedUrl, action, scrollRestorationId); export { useScrollRestoration }; //# sourceMappingURL=useScrollRestoration.js.map