Why is createURL fired many times with different values after one action or reload?

I am building the router following the Vue-InstantSearch docs and Instantsearch.js docs.

On every action I take, a reload or filter selection in the UI, createURL seems to fire many times. What is the reason for this?

It appears to fire the following times when I refresh a page:

  1. Once for each Price Refinement
  2. Once for each Brand Refinement
  3. Once for each Color Refinement

It appears to fire the following times when I refresh a page:

  1. Once for each possible Brand Refinement for with the selected refinement as first of the array
  2. Once for each color refinement possible within the brand Refinement

The question is, does it matter and is this intended?

Thanks!

The createURL call is fired multiple times in the Sandbox as well. However, routeState object appears different than what I am receiving in my local createURL function.

It looks like parseURL is responsible for this in the sandbox and Instantsearch.js. The vue-instantsearch docs make it seem like it is part of the default API, however, it only exists in the default router and it called by the API function read.

My issue appears to be solved, but perhaps it would make sense to clarify this in the docs?