fh-components
fh-components copied to clipboard
Load-on-view / InfiniteScroll - URL not updating on new routes
Hello!
I'm currently using <load-on-view>
with infiniteScroll
mixin, and when navigating via <router-link>
from an archive category page to another archive category page, the JSON data nextURL
below won't refresh until the next route, or has a repeat of ?contentType=json?
attached to the end?
eg:
'Featured' category > nextUrl = ...featured/page/2/?contentType=json
Click => 'Stop Motion'
'Stop Motion' category > nextUrl = ...featured/page/2/?contentType=json
Click => '2D Animation'
'2D Animation' category > nextUrl = ...stop-motion/page/2/?contentType=json?contentType=json
But
On hard reload or by changing <router-link>
to a regular <a href="">
tag, then both component and mixin work as intended. Any ideas why I'm unable to use <router-link>
?
Ps Can't wait for offset to be added to load-on-view too! ;)
Thanks,