4 ms·
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 ju
by midrus 5y ago
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.
- CGamesPlay 5y agoTo 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).