Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem clicking the link twice #2027

Closed
warlisson opened this issue Oct 13, 2024 · 2 comments
Closed

Problem clicking the link twice #2027

warlisson opened this issue Oct 13, 2024 · 2 comments

Comments

@warlisson
Copy link

warlisson commented Oct 13, 2024

Version:

  • @inertiajs/vue3 version: #.#.#

Describe the problem:

When clicking on the link (using Link), the loading is displayed and then the data. When clicking on the link again, it only loads and does not display the data.

Steps to reproduce:

When loading the page, the loading text is displayed. When clicking on the links, the loading is also displayed, but when clicking twice on the same link, the loading text is displayed and the object with the data is not returned.

Here is the code used for testing:

`

<Link href="/">All Users</Link> -
<Link href="/?status=active">Users active</Link>

<Deferred data="users">
  <template #fallback>
    <div>Loading...</div>
  </template>
  <div v-for="user in props.users">
    <p class="p-2 bg-slate-100 mb-1">My name is {{ user.name }}</p>
  </div>
</Deferred>

`

@MarcEspiard
Copy link

I think it's the same as #2013

@reinink
Copy link
Member

reinink commented Oct 18, 2024

This should be fixed in #2024, and we hope to get a new beta release out shortly 👍

@reinink reinink closed this as completed Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants