You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Reproduction repo
n/a
To reproduce
Pass an eventID that does not exist to useEventDetails
The text was updated successfully, but these errors were encountered:
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
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.
Reproduction repo
n/a
To reproduce
Pass an eventID that does not exist to useEventDetails
Additional information
No response
From SyncLinear.com | TRI-2377
The text was updated successfully, but these errors were encountered: