Skip to content

Lazy infinite queries hook #5000

@Innders

Description

@Innders

The ability to use infinite queries with a lazy hook just like normal lazy queries.

useLazyGetPokemonInfiniteQuery.

Use case

The ability to get the data from multiple different arguments. Currently there is no way to dynamically call the infiniteQuery for with different arguments as hooks are not loopable.

const [getPokemon] = useLazyGetPokemonInfiniteQuery()

  for (const type in types) {
    getPokemon(type)
  }

Issues

How do you deal with the fetchNextPage

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions