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
Im running into an issue with jotai-tanstack-query and jotai where if I have a derived atom that has some try/catch logic around a atomWithSuspenseQuery that throws an error, the queryFn will just keep executing. I'm assuming this is a bug?
the use case for me is I wanted to add some handling for returning some default fallback in the derived atom when i get a 404, but im running into an issue where it executes more than it needs to
The text was updated successfully, but these errors were encountered:
sunniejai
changed the title
atomWithSuspenseQuery keeps executing the queryFn when you throw an exception
atomWithSuspenseQuery keeps executing the queryFn if you use it in a derived atom with some try/catch logic
Nov 14, 2024
Im running into an issue with jotai-tanstack-query and jotai where if I have a derived atom that has some try/catch logic around a atomWithSuspenseQuery that throws an error, the queryFn will just keep executing. I'm assuming this is a bug?
simple repro here: https://codesandbox.io/p/sandbox/practical-kare-wlfm83
the use case for me is I wanted to add some handling for returning some default fallback in the derived atom when i get a 404, but im running into an issue where it executes more than it needs to
The text was updated successfully, but these errors were encountered: