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

[TRI-2377] bug: useEventDetails React hook throws an error when the event is not found #1053

Open
ericallam opened this issue Apr 23, 2024 · 0 comments

Comments

@ericallam
Copy link
Member

ericallam commented Apr 23, 2024

Provide environment information

Latest packages (2.3.18)

Describe the bug

When passed an event ID that is not found, the fetch for the event details returns a 404, which zodfetch swallows and returns undefined, leading Tanstack Query to throw an error and repeatedly try and refetch the 404 URL.

CleanShot 2024-04-23 at 16 43 54@2x

Reproduction repo

n/a

To reproduce

Pass an eventID that does not exist to useEventDetails

Additional information

No response

From SyncLinear.com | TRI-2377

@ericallam ericallam changed the title bug: useEventDetails React hook throws an error when the event is not found [TRI-2377] bug: useEventDetails React hook throws an error when the event is not found Apr 23, 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

1 participant