Skip to content

[InfiniteScroll] Not fetching when changing query parameters #2593

@francoism90

Description

@francoism90

@inertiajs/vue3 Version

2.2.1

Backend stack (optional)

Laravel 12.x (latest)
PHP 8.4
NuxtUI 4

Describe the problem

I have a 'chips' that work like filters, e.g. how YouTube has this on the frontpage: https://github.com/francoism90/stry/blob/4d5894ab2d78dd57938c80a75cb8c4d4af303d37/resources/js/pages/Tags/TagIndex.vue#L21

The problem is when switching between them (particular on this page) it doesn't seem to reset the scroller state. I have tried appending query parameters like ?page=1, but I think the issue is actually in the remember state.

Steps to reproduce

  1. Add an query parameter
  2. Re-use same component
  3. State (pages?) seems to not reset

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more info/workNeeds more info from the author or additional work to get mergedvue 3Related to the vue 3 adapter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions