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

Use service on server query prefetch instead of api request #22

Closed KyleJune closed 2 years ago

KyleJune commented 2 years ago

Closes https://github.com/KyleJune/deno-tailwind-ui-react-example/issues/21

As part of this, I also made it so that the form to create a new post will work even with javascript disabled. It just doesn't handle errors correctly if javascript is disabled. I'll create a separate issue for having the server render the posts page with an error.

There is still an issue when the url is invalid. error boundaries do not work in server side rendering. I'll create a separate issue for that,