It hosts logic for doing api calls and populating data in Lighting Views: Api call on route visit:
** data population (entry) **
Or take a look at our opensource router example: GitHub - mlapps/router-example-app it hosts some dummy examples on how to add and API to your codebase and perform certain api calls when accessing a route:
You can address the Router documentation to learn more about the Router plugin:
You can try one more solution if this is feasible with your example
As @erikhaandrikman has shared the example, you can add a line for the content tag, which always clears the previous response before adding the array data