ErrorBoundary explanation
Can someone explain why this first one works and other doesnt:
1.
2.
3 Replies
It would be quite cumbersome to move everything to new component everytime I want to use solid query
My guess is that
createQuery
runs immediately at first. Since the query is run outside of the ErrorBoundary in the second example, It doesn't hit the boundary. While in the first example, it's in a component that has the query and it runs under the boundaryYeah, it just makes me wonder when you are supposed to use errorboundaries since it's required to make separate child component for pretty much every query/component combination