question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jotai/query ignores `useErrorBoundary` property (`atomWithQueryWithoutSuspense`)

See original GitHub issue

Seems 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:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
andreas-sorokocommented, Sep 14, 2021

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 👍🏼

1reaction
dai-shicommented, Sep 1, 2021

#672 is new effort. (useErrorBoundary will still be ignored, but it might cover your use case.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found