keep-alive doesnt return always the last state

121 Views Asked by At

I have a search form which is divided into 2 parts, a first part made up of a component (which has the inputs where the user must write their search)

  <!-- Search Form -->
      <keep-alive>
        <searchForm />
      </keep-alive>

And a second part where all the functions and other functionalities of the search module are.

According to what I have been looking at, the tag keeps the component "alive" even if the user is in another part of the application, but this partially works for me, since there are times when I return to the page, the form is compiled with the latest data (it works and other times I return and a filter that I had entered before appears, but it is not the last one (it does not work).

0

There are 0 best solutions below