jotai/query ignores `useErrorBoundary` property (`atomWithQueryWithoutSuspense`)
See original GitHub issueSeems like jotai/query
ignores completely the useErrorBoundary
property ( defaults = false ) from react-query options.
would be great if jotai/query
would support this case too, currently it’s no option for us to refactor everything to React.Suspense / ErrorBoundary components.
(we show loading spinner on buttons and don’t want to change the complete component there)
example: https://codesandbox.io/s/jotai-query-hacker-news-forked-nnvus?file=/src/App.tsx
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Created a minimal example and noticed that the error does not occur, so had a look into what change compared to my project and I had to update vite itself from 2.1.3 to 2.5.7 …
Now it’s working and will test the change with
loadable
if I have some time for, thank you 👍🏼#672 is new effort. (
useErrorBoundary
will still be ignored, but it might cover your use case.)