Can I use error.js and loading.js in a same segment ?
Unanswered
American posted this in #help-forum
AmericanOP
because when I use both then on throwing error error.js didn't work , only loading.js was coming on my UI.
1 Reply
Shy Albatross
wow that's a lot of context, surely makes it easier to help, let me provide equally non-generic helpful response:
maybe you need to add an error boundary?
maybe you need to add an error boundary?