Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 1.02 KB

scroll-restoration.md

File metadata and controls

21 lines (12 loc) · 1.02 KB

Scroll Restoration

Complete Scroll restoration and hash #links handling is addressed primarily by one of our companion packages: redux-first-router-restore-scroll (we like to save you the bytes sent to clients if you don't need it). In most cases all you need to do is:

Example:

import restoreScroll from 'redux-first-router-restore-scroll'
connectRoutes(history, routesMap, { restoreScroll: restoreScroll() })

Visit redux-first-router-restore-scroll for more information and advanced usage.

Scroll Restoration for Elements other than window

We got you covered. Please checkout redux-first-router-scroll-container.

Scroll Restoration for React Native

We got you covered! Please checkout redux-first-router-scroll-container-native.