Adding keep-alive to router to maintain filter state
In this lesson, we're going to be using the keep-alive
component to cache our pages.
To do this, we're going to learn about some advanced concepts including slot props and the meta component.
Problem
There's a problem that we have with our app that you may not have noticed. Let's select a few filters and then click through to one of the movies. We'll then navigate back to the main page.
Click to load comments...