Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

[Bug]: Duplicate requests to alerts #230

@alex-mcgovern

Description

@alex-mcgovern

Description

In #222 I create a second useQuery hook for the /alerts endpoint, the intention was to begin incrementally deprecating the old hook, so that we could make changes to the new one without impacting existing data fetching.

This has had the rather predictable side-effect of making duplicate API calls to the server to fetch the same list of alerts. Given that this endpoint also doesn't support pagination, this is resulting in some degraded performance with users with large numbers of alerts. See this message from @danbarr

I know we've brought up DB size/performance, just wanted to note that it's getting fairly noticeable, here's mine with the latest UI pulled from main. My DB file is nearing 40MB.

2025-01-29_18-51-49.mp4

Image

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions