Skip to content

useAnalyticsQuery issues duplicate network requests for identical queries across hook instances #496

Description

@hjonasson

Hi 👋 ,

I am setting up a Databricks web app, starting from the databricks apps init and hit a few snags. I will start by reporting two of them.

useAnalyticsQuery does not deduplicate identical requests across hook instances on main.

If multiple components call the hook with the same queryKey and the same parameters, each instance creates its own request instead of sharing a single in-flight request. I foresee using the same data in a few different places. It would be great to deduplicate the calls under the hood in useAnalyticsQuery instead of either managing it on my side, or having to write a data layer from scratch.

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