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

usePoll() without any argument goes crazy #2229

Open
kaiserkiwi opened this issue Feb 8, 2025 · 0 comments
Open

usePoll() without any argument goes crazy #2229

kaiserkiwi opened this issue Feb 8, 2025 · 0 comments

Comments

@kaiserkiwi
Copy link

Versions:

  • @inertiajs/core version: #.#.#
  • @inertiajs/vue2 version: #.#.#
  • @inertiajs/vue3 version: 2.0.3
  • @inertiajs/react version: #.#.#
  • @inertiajs/svelte version: #.#.#

Describe the problem:

The new usePoll() composable works without any argument. That means it will just work every Millisecond and quickly crash the server if you just insert usePoll(). The expected result for me would be a sensible default (Like 2,5 Seconds as in Livewire) or at least a warning, that you have to pass a number.

Steps to reproduce:

This is all you need

<script setup>
import { usePoll } from '@inertiajs/vue3';

usePoll();
</script>

<template>
	Something
</template
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

1 participant