Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think in an SPA, traditional form posts and server redirects are a terrible idea.

This might work for q blog post example, but imagine doing a full reload just because you liked a post or a comment.



To be clear, I don't think Remix does this: the built-in `Form` component automatically handles converting the form submit into a fetch call and routing it directly to the appropriate component without doing a full page refresh, unless the component explicitly calls for an explicit refresh afterwards (e.g. redirect).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: