404 requires a client side render
Unanswered
Capelin posted this in #help-forum
CapelinOP
Using the app router, if I call notFound() from page.tsx, it still needs JS on the front end to render the page. It does give a 404 response but with a blank page.
This is both with or without a custom 404
I am trying to make my app work as much as possible with JS disabled ideally
Is it possible to render 404 without needing another round trip?
This is both with or without a custom 404
I am trying to make my app work as much as possible with JS disabled ideally
Is it possible to render 404 without needing another round trip?
1 Reply
@Capelin Using the app router, if I call notFound() from page.tsx, it still needs JS on the front end to render the page. It does give a 404 response but with a blank page.
This is both with or without a custom 404
I am trying to make my app work as much as possible with JS disabled ideally
Is it possible to render 404 without needing another round trip?
CapelinOP
Interestingly non-404 routes render fine without JS and they fetch data too!