fh-components icon indicating copy to clipboard operation
fh-components copied to clipboard

Load-on-view / InfiniteScroll - URL not updating on new routes

Open mrkylemac opened this issue 6 years ago • 0 comments

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

mrkylemac 2019-01-24 at 4 55 58 pm

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,

mrkylemac avatar Jan 24 '19 06:01 mrkylemac