KyleJune / deno-tailwind-ui-react-example

An example of how you can use Tailwind UI and React with Deno
20 stars 5 forks source link

Display errors when creating new posts incorrectly with javascript disabled #23

Open KyleJune opened 2 years ago

KyleJune commented 2 years ago

Currently the form will only show errors with javascript enabled. If you disable javascript and submit the form to create a new post, it will return an internal server error because the error is currently unhandled. I'm not sure how to pass down the error to the form when doing ssr. Another problem is that error boundaries do not work with ssr, so there would need to be a check if we are in the server or browser with the server not using error boundaries.