TanStackT
TanStack2mo ago
1 reply
homeless-violet

Mobile app router style

Hi there,

I'm developing a mobile app using React.JS and Capacitor.js, that basically an electron for mobile apps.

I decided to use tanstack router to manage my pages. It works great, but I was wondering something.

My app has a classic mobile layout, with a bar on the bottom to navigate between the principal parts of the app, like Spotify for ex.

To keep spotify example, if you go in the Search part, do a search, go in an album or artist page, and then you clic on the "Library" link on the bottom navigation bar, do your life, and then clic again on the Search link in the bottom, you'll get back to the album/artist page you were looking, not at the home of the search page.

I saw the "memoryHistory", but have no idea if this is what I'm looking for. Maybe I just have to manually store those infos inside a state somewhere ?
Was this page helpful?